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

Forums / Deployment / 301 Redirections

301 Redirections

6 posts, 0 answered
  1. Haydn
    Haydn avatar
    13 posts
    Registered:
    13 May 2008
    23 Jun 2008
    Link to this post
    Hi all,

    I am in the midst of deploying a sitefinity instance, and this instance is to replace a old website that was written in PHP.

    We are deployed to a different host, and plan to swap over the domain to refer to our new site.

    Problem is, Google has indexed the old site, and we are taking over the domain, so naturally, we want to inform Google that the links within the
    site have changed. We plan to be using a 301 redirection.  

    My question is, how best can this 301 redirection be done within Sitefinity?

    Ideally, we want to redirect the existing PHP page requests to applicable SiteFinity Pages for a select few old pages.

    example:

    http://www.somesite.com/somepage.php

    301 redirects to

    http://www.somesite.com/somepage.aspx

    and anything we dont want to redirect will result in a 404.

    Any advice on this would be appreciated.

    Many thanks in advance

  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    23 Jun 2008
    Link to this post
    when you add a page to sitefinity you have the option of adding "additional urls" so that if users visit this via these additional urls, they will instead see the content of the sitefinity page Additionally, you can check a box that will enable redirection to the correct page (as opposed to just showing the correct content but the same old url) and if I am not mistaken this should be a 301 redirect.

    hope that this was helpful!
  3. Jeff
    Jeff avatar
    124 posts
    Registered:
    05 Aug 2007
    23 Jun 2008
    Link to this post
    Actually, the "Additional URLs" feature uses 302 (temporary) redirects, not 301 (permanent) redirects, according to this post.

    302's aren't followed by Google.

    I'm not sure if there's a Sitefinity solution for creating 301 pages. However, you could install PHP on the server and do the redirect using PHP scripting.
  4. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    23 Jun 2008
    Link to this post
    are you sure these redirects aren't 301? when the sf team said they'd implemented this feature, they were supposed to make it a 301. I don't know how you would check but that's what I was under the impression it was. can anybody from the sf team confirm?
  5. Jeff
    Jeff avatar
    124 posts
    Registered:
    05 Aug 2007
    23 Jun 2008
    Link to this post
    You know, the end of that post I referenced says 301's will be included in SP2. I can't confirm that's actually the case, though. Probably best to hear it from SF themselves.
  6. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    24 Jun 2008
    Link to this post
    Hi,

    Jeff and Josh,
    The Additional URLs are in fact using 301 Redirects. If you follow up the thread provided by Jeff, you will notice that in the end of the thread we confirm it.

    Haydn,
    Everything that Josh mention is correct. I just want to add that you can put the following PHP code at the top of the pages located on your old domain, which will result a 301 Redirect to your new pages:

    <?php 
    header('HTTP/1.1 301 Moved Permanently');    
    header('Location: '.$location); 
    ?> 

    The $location variable holds the new address a string value.

    Don't hesitate to contact us if you have other questions.

    Kind regards,
    Georgi
    the Telerik team

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