Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2009
    Location
    Orlando, FL
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Advice needed redirecting 5000 pages from old domain to new domain .htaccess keep PR

    from a branding standpoint we are changing domain names...
    The result we are trying to achieve is redirecting 5000 pages from old domain to new domain, keep PR, SEO with Search Engines as this is a high traffic website.

    What is the best way, do we need to create a .htaccess file with line-by-line url's from old domain to new domain?

    We have Linux server with mod-rewrite enabled and need advice on the proper .htaccess file we need to add in our root directory. From our research the best way to get search engines to acknowledge this domain change and preserve our SEO is:

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www\.)?OLD\.com$ [NC]
    RewriteRule .* http://www.our_new_domain.com%{REQUEST_URI} [R=301,L]

    or

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.our_new_domain.com/$1 [R=301,L]

    Alternately, we've found this in a forum as a line-by-line redirect:

    Redirect permanent /old_domain_page/004.htm http://www.our_new_domain.com/old_domain_page/004.htm
    Redirect permanent /old_domain_page/005.htm http://www.our_new_domain.com/old_domain_page/005.htm
    Redirect permanent /old_domain_page/006.htm http://www.our_new_domain.com/old_domain_page/006.htm
    Redirect permanent /old_domain_page/007.htm http://www.our_new_domain.com/old_domain_page/007.htm
    Redirect permanent /old_domain_page/008.htm http://www.our_new_domain.com/old_domain_page/008.htm
    Redirect permanent /old_domain_page/009.htm http://www.our_new_domain.com/old_domain_page/009.htm
    Redirect permanent /old_domain_page/0010.htm http://www.our_new_domain.com/old_domain_page/0010.htm

    Which way do we go? What is the absolute best way to achieve our migration from our old domain to new domain.

    Many thanks,

  • #2
    New Coder
    Join Date
    Jul 2009
    Posts
    91
    Thanks
    5
    Thanked 6 Times in 6 Posts
    I'm probably being stupid, but could you just not add the old domain as an alias in the Apache configuration of the new domain, making sure the dns A record for the old domain pointed to the new?

    Similar to this where 'experimental' is an alias to experiment (exceprt);
    <VirtualHost *:80>
    DocumentRoot /home/www/experimental/htdocs
    ServerName experiment
    ServerAlias experiment experimental

    If the pages follow the same order, you should be OK, even with absolute links - as this will resolve back to the alias.
    Like I say, I may be being stupid here and missing something glaringly obvious with the approach.

  • #3
    New Coder
    Join Date
    Jul 2009
    Location
    Near Salisbury, UK.
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I expect you have already seen this...
    http://en.wikipedia.org/wiki/Server-side_redirect
    It seems to have some very straightforward code.

    Just that when I asked a hosting company if they could redirect my site I was told - absolutely and I was to ask (in this case ) for a 303 redirect.

    Sue

  • #4
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you are doing a permanent migration you will want 301 over 303, through the amount of difference it makes is probably negligible.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •