Tag Info

Hot answers tagged

2

Try: RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] This should work. Here is mine: RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]


1

Generally, this is done through the use of 301 redirect codes. There are two types of redirect codes that are commonly used in web development – 301 (which indicates a permanent move) and 302 (which lets the search engines know the move is temporary). The transition to a new domain is nearly always a permanent move, which is why the 301 redirect code is used ...


1

Google Webmaster Tools treats HTTP and HTTPS as separate sites. When adding a site, simply type the URL including the https:// prefix. You will then have two sites in Google Webmaster Tools. This fits with the general principle that http://www.example.com is considered a different URL from https://www.example.com and may validly serve different content, ...



Only top voted, non community-wiki answers of a minimum length are eligible