Skip to content

Instantly share code, notes, and snippets.

@ynh
Created May 14, 2012 06:05
Show Gist options
  • Save ynh/2692082 to your computer and use it in GitHub Desktop.
Save ynh/2692082 to your computer and use it in GitHub Desktop.
Change .htaccess to :
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ /hd/simple-cms/app/webroot/ [L]
RewriteRule (.*) /hd/simple-cms/app/webroot/$1 [L]
</IfModule>
Change app/webroot/.htaccess to :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /hd/simple-cms/app/webroot/index.php?url=$1 [QSA,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment