More in this section

Redirects

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
5 posts, 0 answered
  1. Jon Jones
    Jon Jones avatar
    19 posts
    Registered:
    13 Aug 2003
    05 Dec 2017
    Link to this post
    We are moving an existing site into Sitefinity.  Obviously the URLs are not all going to be exactly the same.  I would like to allow the content owners to be able to setup redirects from the old urls to the new Sitefinity urls.  This will also need to be used for other arbitrary redirects in the future.  I was thinking of creating a Sitefinity list or module that would contain the old and new urls.  Where does the code need to go to do these redirects?  I would assume code would be needed that runs on every request.
  2. J
    J avatar
    0 posts
    Registered:
    06 Oct 2017
    06 Dec 2017 in reply to Jon Jones
    Link to this post
     
  3. Jonathan
    Jonathan avatar
    119 posts
    Registered:
    19 Dec 2012
    06 Dec 2017
    Link to this post
    No extra work needed my friend, what you are asking for is built into the page properties.  If you look at a pages Title & Properties, check the box to Enable Multiple Urls for this page.  So if the contact pages used to be http://{yourdomain.com}/about/contact-us and now it is http://{yourdomain.com}/contact.  In the multiple urls area you will place ~/about/contact-us this will 301 redirect the old to the new. 
    Documentation:https://docs.sitefinity.com/administration-add-additional-urls-to-a-page

  4. Jon Jones
    Jon Jones avatar
    19 posts
    Registered:
    13 Aug 2003
    07 Dec 2017 in reply to Jonathan
    Link to this post
    That works for URLs that are staying on this site, but we have some that will actually need to be redirected to another site since some are applications instead of just content and will be moved under a different, non Sitefinity managed, site.  We also have a need for some redirect urls (like http://mysite.com/gotosomething) to redirect to various locations, on and off the Sitefinity site.  My concern there is since those redirects are 301 permanent redirects, doesn't seem like there would be a way to redirect them elsewhere in the future if the need arose.  There any way to make these 302 redirects?
  5. Jon Jones
    Jon Jones avatar
    19 posts
    Registered:
    13 Aug 2003
    07 Dec 2017 in reply to Jon Jones
    Link to this post
    I think I found a solution, although not a really pretty one.  Instead of using a redirect page for URLs I might want to re-point some day, I can use a regular page and set a meta refresh in the page properties to redirect to the needed URL.  Still a multi-step process so not real clean, but at least it's manageable within Sitefinity.  If you have any other options, please let me know.
5 posts, 0 answered