Permanent Redirect Not Found On My Website...Help!

Discussion in 'Search Engine Optimization' started by redcyc, Mar 14, 2008.

  1. #1
    I received this message...

    Search engines may think www.redcyc.com and redcyc.com are two different sites. You should set up a permanent redirect (technically called a "301 redirect") between these sites. Once you do that, you will get full search engine credit for your work on these sites.

    My registrar is register.com, what is the easiest way to do this?

    If there have been previous posts I can be referred to, I would appreciate it...

    Thanks

    -------------------------------------
    Dale
     
    redcyc, Mar 14, 2008 IP
  2. marshalseo

    marshalseo Peon

    Messages:
    252
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There is a .htaccess file in apache service, you can set here your url setting or read for more
    mcanerin.com/EN/articles/301-redirect-IIS.asp
    highposition.net/301redirect.html
     
    marshalseo, Mar 14, 2008 IP
  3. Onera

    Onera Peon

    Messages:
    864
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Assuming you are on one of those shared hosting and Apache is your server and mod_rewrite is turned on, and host yoursite.com and www.yoursite.com point to the same root directory of the server, you can create an .htaccess file in web root with the following
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yoursite\.com
    RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=permanent,L]
     
    Onera, Mar 14, 2008 IP
  4. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #4
    Below is the better method to use in .htaccess when redirecting non-www to www.

    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.redcyc\.com$ [NC]
    RewriteRule ^(.*)$ http://www.redcyc.com/$1 [R=301,L] 
    
    Code (markup):
     
    astup1didiot, Mar 14, 2008 IP