301 Redirect

Discussion in 'General Web Coding' started by Eksith, Oct 20, 2007.

  1. Eksith

    Eksith Guppy

    I was trying to figure out why I had so many 302 redirects on my site (94%!!!) when I realized I had multiple domain aliases.

    Is there any way for these domain 302's to be turned into 301's?

    On an earlier post on this
    Which is a good point.
    The control panel should be making this a 301 permanent redirect. 302 Doesn't make any sense at all for this purpose and may even harm search engine ranks.

    I tired adding the following to my .htaccess :
    Code:
    RewriteCond %{HTTP_HOST} ^example.biz [NC] 
    RewriteCond %{HTTP_HOST} ^example.info [NC] 
    RewriteCond %{HTTP_HOST} ^example.org [NC] 
    RewriteCond %{HTTP_HOST} ^example.biz [NC] 
    RewriteCond %{HTTP_HOST} ^example.net [NC] 
    RewriteCond %{HTTP_HOST} ^example.us [NC] 
    RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
    
    I'm not sure if that's valid or not (seems to not cause any errors), but I don't know if it works.
    Can this work without digging into H-Sphere configrations?

    Are there any plans to fix this?

Share This Page

JodoHost - 26,000 hosting end-users in 100 countries
Plesk Web Hosting
VPS Hosting
H-Sphere Web Hosting
Other Services