Skip to content

Instantly share code, notes, and snippets.

@landsman
Created August 29, 2018 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save landsman/ad9e04ff3061a6ef3a444223dd37be11 to your computer and use it in GitHub Desktop.
Save landsman/ad9e04ff3061a6ef3a444223dd37be11 to your computer and use it in GitHub Desktop.
<IfModule mod_rewrite.c>
RewriteEngine On
# fix one domain name with HTTPS
#
RewriteCond %{HTTP_HOST} ^studioartcz.cz [NC]
RewriteRule ^(.*)$ https://www.studioart.cz/$1 [L,R=301]
# fix for poor hosting without www_root setup
#
#RewriteRule (.*) web/$1 [L]
RewriteCond %{REQUEST_URI} !^/web
RewriteRule ^(.*)$ /web/$1 [NC,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment