Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #с www на без www
- RewriteCond %{HTTP_HOST} ^www\.site\.ru$ [NC]
- RewriteRule ^(.*)$ http://site.ru/$1 [R=301,L]
- #без www на www
- RewriteCond %{HTTP_HOST} ^site.ru$ [NC]
- RewriteRule ^(.*)$ http://www.site.ru/$1 [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement