Skip to content

Instantly share code, notes, and snippets.

@aaoliveira
Forked from rakeshtembhurne/.htaccess
Last active August 29, 2015 14:11
Show Gist options
  • Save aaoliveira/7a3a0c7484e2da4e947b to your computer and use it in GitHub Desktop.
Save aaoliveira/7a3a0c7484e2da4e947b to your computer and use it in GitHub Desktop.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/blog.*
RewriteCond %{REQUEST_URI} !-f
RewriteRule ^$ app/webroot/ [L]
RewriteCond %{REQUEST_URI} !^/blog.*
RewriteCond %{REQUEST_URI} !-d
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment