Hi, I want to rewrite all the url pages of "site.com" to "www.site.com".
I read the moz redirection article and i concluded that this would be the best approach.
RewriteCond %{HTTP_HOST} !^www.seomoz.org [NC]
RewriteRule (.*) http://www.seomoz.org/$1 [L,R=301].
But i recieved this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
I tried this rewrite too...
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301]
It worked but it just rewriting my domain** "site.com"** and not all the subs "site.com/fr/example.php" to "www.site.com"
Why it doesn't work properly, it seem to be easy...
Could it be a hosting problem?
Is there another way to do it?
<address> </address>
<address> </address>
<address> </address>
<address> </address>