: What you want to do is a 301 redirect from example.com/anypage to www.example.com/anypage. Basically you just want to add the www, not take the user to the home page just because they forgot
What you want to do is a 301 redirect from example.com/anypage to example.com/anypage. Basically you just want to add the www, not take the user to the home page just because they forgot the That's really bad usability.
Fortunately this is easy to do if you use Apache. This little snippet in the conf file for the site or a .htaccess will do the trick:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www.|$) [NC]
RewriteRule ^ www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
This will make sure that PageRank and each page's ranking (two different things) are maximized and focused on the page with the The page without the www will eventually fall out of Google's index.
More posts by @Kristi941
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.