Skip to content

Instantly share code, notes, and snippets.

@rolandinsh
Created October 3, 2012 16:32
Show Gist options
  • Save rolandinsh/3828107 to your computer and use it in GitHub Desktop.
Save rolandinsh/3828107 to your computer and use it in GitHub Desktop.
WWW un bez WWW lapa ar .htaccess
# info: http://darbi.mediabox.lv/?p=444
# noņem www domēna sākumā
RewriteCond %{HTTP_HOST} ^www.mediabox.lv$ [NC]
RewriteRule ^(.*)$ http://mediabox.lv/$1 [R=301,L]
# pievieno www domēna sākumā
RewriteCond %{HTTP_HOST} ^mediabox.lv$ [NC]
RewriteRule ^(.*)$ http://www.mediabox.lv/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment