Help with a 301 redirect please

Discussion in 'SEO' started by dwhswebhosting, Apr 22, 2014.

  1. #1
    Hi,

    We changed our main domain and now we are trying to do the correct 301 redirect.

    The new domain is "webhost.pro" with no www.

    The old domain is www.dwhs.com and dwhs.com
    The other old domain is www.dwhs.net and dwhs.net

    I would love for the old domains to redirect to the new domain without the www.

    The new domain has a SSL cert and ideally would redirect to the same page.

    So if you went to www.dwhs.com/web-hosting.htm it would redirect to webhost.pro/web-hosting.htm

    Hope this makes since.

    This is what I have so far:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.dwhs.com [nocase]
    RewriteCond %{HTTP_HOST} ^dwhs.com [nocase]
    RewriteCond %{HTTP_HOST} ^www.dwhs.net [nocase]
    RewriteCond %{HTTP_HOST} ^dwhs.net [nocase]
    RewriteRule ^(.*) http://webhost.pro/$1 [last,redirect=301]


    But it does not redirect at all actually.

    Thanks!
     
    dwhswebhosting, Apr 22, 2014 IP