#1
  1. For POny!
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Location
    Amsterdam
    Posts
    416
    Rep Power
    115

    Permanent redirect good practise


    Hi guys,

    I pretty much want domainA.com to redirect permanently to domainB.com

    Is the following snippet good practise to do so?

    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.domainB.com/$1 [R=301,L]
    If this is the right way or anyone knows a better way, let me know. I don't want to get screwed over by search bots
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,068
    Rep Power
    9398
    Don't even need mod_rewrite.
    Code:
    Options +FollowSymLinks
    Redirect permanent / http://www.domainB.com/

    Comments on this post

    • aeternus agrees : awesome thanks!
  4. #3
  5. For POny!
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Location
    Amsterdam
    Posts
    416
    Rep Power
    115
    Originally Posted by requinix
    Don't even need mod_rewrite.
    Code:
    Options +FollowSymLinksh
    Redirect permanent / http://www.domainB.com/
    awesome! Thanks as always requinix

IMN logo majestic logo threadwatch logo seochat tools logo