Last active

Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

.htaccess to allow subdirectory access parallel to a CakePHP app

View .htaccess_cake_with_subs
1 2 3 4 5 6 7 8 9 10
<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
Something went wrong with that request. Please try again.