1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

question how to properly set up 301 via htaccess

Discussion in 'White Hat SEO' started by lendir, Mar 24, 2015.

  1. lendir

    lendir Registered Member

    Joined:
    Oct 11, 2012
    Messages:
    62
    Likes Received:
    9
    hello guys
    so im thinking to change my domain name to different domain for better branding name purpose,on my previous domain the site all ready had success and has steady organic traffic
    , so i set up htaccess on my 1rst domain and setup 301 redirect to my new domain (that 4 month ago )
    the htaccess code is something like this
    PHP:
    RewriteEngine on
    RewriteCond 
    %{HTTP_HOST} ^domain1.net [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.domain1.net [NC]
    RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301,NC]
    is this the correct htaccess code? previously on my first domain let say i get 500 dailly organic visit from SE ,but after doing 301 i get around 350-400 organic visit dailly
    also i noticed after that the http header is result like this

    HTML:
    SERVER RESPONSE: HTTP/1.1 301 Moved Permanently>>SERVER RESPONSE: HTTP/1.1 403 Forbidden
    isn't i should expecting response like this


    HTML:
    SERVER RESPONSE: HTTP/1.1 301 Moved Permanently>>SERVER RESPONSE: HTTP/1.1 200 OK
    Thank you
     
  2. papercut

    papercut Junior Member

    Joined:
    Feb 22, 2015
    Messages:
    135
    Likes Received:
    7
    I do not see anything wrong with this form of redirection, what kind of server do you use? (Shared, vps eg)