Skip to content

Instantly share code, notes, and snippets.

@hrysd
Created September 17, 2012 04:04
Show Gist options
  • Save hrysd/3735476 to your computer and use it in GitHub Desktop.
Save hrysd/3735476 to your computer and use it in GitHub Desktop.
#/Users/hrysd/Sites/project/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /~hrysd/project
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
#/Users/hrysd/Sites/project/app/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /~hrysd/project/app
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
#/Users/hrysd/Sites/project/app/webroot/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~hrysd/project/app/webroot
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
# /etc/apache2/users/hrysd.conf
<Directory "/Users/hrysd/Sites/project/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment