Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
.htaccess to allow subdirectory access parallel to a CakePHP app
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/(?:development|cgi-bin|v1\.5|phpMyAdmin)(?:$|/)
RewriteRule ^$ app/webroot/ [L]
RewriteCond %{REQUEST_URI} !^/(?:development|cgi-bin|v1\.5|phpMyAdmin)(?:$|/.*)
RewriteRule (.*) app/webroot/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment