Skip to content

Instantly share code, notes, and snippets.

@Aurielle
Created January 18, 2013 15:59
Show Gist options
  • Save Aurielle/4565571 to your computer and use it in GitHub Desktop.
Save Aurielle/4565571 to your computer and use it in GitHub Desktop.
Přesměrování domena.cz na www.domena.cz
RewriteEngine On
# RewriteBase /
# non-www to www xxxxx.cz => www.xxxxx.cz
RewriteCond %{HTTP_HOST} ^([^\.]+\.[^\.]+)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment