Hello,
Right now I use mod_rewrite to redirect my non-www-adress to my www-address. Is working perfectly. But...
I also have 3 domain-aliases that I want to redirect to my main-domain using mod_rewrite.
I now use the following code in my .htaccess-file:
RewriteCond %{HTTP_HOST} ^www.site-a.com$
RewriteCond %{REQUEST_URI} !^/site-b.com/
RewriteRule (.*) /site-b.com/$1
I've the following question:
My goal is that search engines (google) see the above code as a '301 redirect'. I want to prevent that search engines see the domain-aliases as duplicate content. Am I using the right code for this? Or should code like [L,R=301] be included???