krot

htaccess c www на без www

Feb 1st, 2016
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #с www на без www
  2. RewriteCond %{HTTP_HOST} ^www\.site\.ru$ [NC]
  3. RewriteRule ^(.*)$ http://site.ru/$1 [R=301,L]
  4.  
  5.  
  6. #без www на www
  7. RewriteCond %{HTTP_HOST} ^site.ru$ [NC]
  8. RewriteRule ^(.*)$ http://www.site.ru/$1 [R=301,L]
RAW Paste Data