Mobile app version of vmapp.org
Login or Join
Twilah146

: How do I hide a 301 redirect from my root domain? I was analyzing my webpage SEO using an online tool where I saw that my http status for my root domain name www.caliberequipment.com was

@Twilah146

Posted in: #301Redirect #CanonicalUrl #NoWww #Redirects #Seo

I was analyzing my webpage SEO using an online tool where I saw that my http status for my root domain name caliberequipment.com was resulting in a 301 redirect to caliberequipment.com/index.html
I would much rather have my root domain returning a 200 result instead- but I set up my 301 redirects a long time ago and now I am note sure how to alter my code to resolve this. I have noticed my website's main root domain disappearing from the SERPs (being replaced, in most cases, with a sub domain page) and I am afraid that this 301 redirect may be affecting my root domain's ability to rank.

My .htaccess file begins with this code:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^caliberequipment.com [NC]
RewriteRule ^(.*)$ www.caliberequipment.com/ [L,R=301]


Followed by my individual redirects.

My index.html page includes the code:

<link rel="canonical" href="http://www.caliberequipment.com">


And I have Google webmaster tools set up to have any instances of non-www pages show up as their www version instead.

Is any of this code redundant? What should I change in order to get a http 200 result for my root?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Twilah146

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sims2060225

RewriteRule ^$ /index.html [L]


This will tell Apache to treat the hit to the yoursite.com as hit to yoursite.com/index.html without redirecting (URL stays the same).

The code you already have (last 2 lines) tells Apache to redirect not www-prefixed url to one with www in front (e.g. yourdomain.com/somepage.html => www.yourdomain.com/somepage.html).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme