+1-888-365-2779
Try Now
More in this section

Forums / Suggestions / 301 Redirect Option for "Additional Urls"

301 Redirect Option for "Additional Urls"

10 posts, 0 answered
  1. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    01 May 2008
    Link to this post
    hello again! I am in the process of replacing our existing website with the sitefinity cms. I love the feature of additional urls which will allow me to use the old links and show the new content that is replacing it, however, the way that it is set up, putting in the old url (added as an additional URL in the page properties) does not redirect to the correct page, rather it intercepts it and renders it as if they had loaded the correct page.

    this is not the behavior that I want because we would then have two different urls for the same page. what I want to do is be able to catch the old url, and REDIRECT to the correct default one, with 301 so that it is search engine friendly. is this a possibility?

    thanks!
  2. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    02 May 2008
    Link to this post
    Hi Josh,

    The original idea of additional URLs is to provide simple way for URL rewriting without using regular expressions. However, your idea makes perfect sense indeed. We will try to add this option for the next release which should be out in a couple of weeks.

    Thanks for the idea. Your Telerik points have been updated.

    Greetings,
    Bob
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Zubair
    Zubair avatar
    142 posts
    Registered:
    26 Dec 2007
    05 May 2008
    Link to this post
    I gave a similar suggestion and even went ahead and wrote my own HttpHandler for it (there're some problems with it offcourse)

    http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-bdkkdc.aspx
  4. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    05 May 2008
    Link to this post
    Hi Zubair,

    I’d like to inform you that 301 Redirection for optional URLs has already been implemented and the feature will be available with the upcoming release.

    Kind regards,
    Bob
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Zubair
    Zubair avatar
    142 posts
    Registered:
    26 Dec 2007
    05 May 2008
    Link to this post
    You mean SP2? or a future version ?

    We're going live with a website during May. It'll be nice if you add it in SP2 and release it soon. Thanks
  6. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    05 May 2008
    Link to this post
    Hi Zubair,

    Yes, we mean Sitefinity SP2, which is due by the end of this month.

    Greetings,
    Rebecca
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Zubair
    Zubair avatar
    142 posts
    Registered:
    26 Dec 2007
    05 May 2008
    Link to this post
    That's great news, thanks again
  8. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    16 Jun 2008
    Link to this post
    I've hit a snag while using this feature. I think there are two possible reasons why it's not working so let me tell you what I did and maybe you can see what's going on internally, thanks.

    I have a page which is located at site.com/subsection/dynamicpage.aspx. This is the current, permanent location for this content, however previous to our adopting sitefinity, this page was located at site.com/dynamicpage.aspx. I added the additional url to be ~/dynamicpage and forwarded it to the current correct page and it works just as I expected.

    However, not too long before that, this content was on a STATIC, html only page. the link to that was site.com/staticpage.htm. I need to be able to forward BOTH the old site.com/dynamicpage.aspx AND the OLDER site.com/staticpage.htm to the new permanent page of site.com/subsection/dynamicpage.aspx. I have set an additional url for the old, static, html only version of the page and set it to forward to the correct url, however when I run that link,I see the correct content from the permanent new page, but in the address bar it still says site.com/staticpage.htm and doesn't forward the URL to the correct one.

    it might be that it's not forwarding from a root directory to the new subdirectory, but as I say above, the middle link site.com/dynamicpage.aspx DOES forward correctly...

    so it seems more likely that it's the htm extension that's killing it. Do I have to map this extention to run through sitefinity or something? why does it display the content correctly, but not forward the url?

    any help would be appreciated, thank you!
  9. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    16 Jun 2008
    Link to this post
    okay hmm here's some more information... it seems that this problem only occurs the first time that I visit the url. I set the additional urls as specified above, and after that I type the oldest address to see if it works, and like I said I see the new content, but it doesn't forward the url, leaving me at site.com/staticcontent.htm.

    but then if I refresh the page, it DOES forward me to the correct url, but it appends ?404;http://site.com/staticpage.htm to the end. This doesn't seem right, I know it's gotta be a problem with my 404 and/or extensionless url handling, but I'm starting to get lost here. any insight you can provide will be very much appreciated.
  10. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    10 Jul 2008
    Link to this post
    Hi SelArom,

    We are really sorry for the huge delay on this issue.

    We were able to test Sitefinity 3.2SP2 as well as the Hotfix under different environments and saw that the problem described really exists. We have logged this issue with high priority and it will be fixed as soon as possible.

    We have updated your Telerik account.

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
10 posts, 0 answered