The following rule in .htaccess
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://www .%1/$1 [R=301,L]
when accessing the url of the form
http://example.com/something
redirect to
http://www ./something
those. RewriteCond works, but transmits nothing. Someone tell me - what is the mistake here?
Immediately get better - an option with
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
and other similar options work, this is understandable.