Tag Info

Hot answers tagged


Add to htaccess: <Files "file.html"> Header add Link "<http://www.example.com>;rel=\"canonical\"" </Files> For further info read: https://moz.com/blog/how-to-advanced-relcanonical-http-headers


This works much better since it does a redirect on any URL without www to the www version. RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]


Assuming your addon domain points to a subdirectory off the main domain's document root, then a simple workaround is to create a .htaccess file for the addon domain and simply enable the rewrite engine: RewriteEngine On This will prevent the parent directory's mod_rewrite directives being inherited. However, since you already appear to be checking the ...

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