Skip to content

Instantly share code, notes, and snippets.

@aminaminamin93
aminaminamin93 / .htaccess
Last active May 17, 2017
HTACCESS FOR CAKEPHP for shared hosting
View .htaccess
#ROOT FOLDER
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
#The app(app folder) / htaccess should look like
@aminaminamin93
aminaminamin93 / cakephp-shared-htaccess
Created May 17, 2017
CakePHP on GoDaddy Shared Hosting .htaccess settings
View cakephp-shared-htaccess
#Need to add three .htaccess files as well as configure the database.php file
####### In the root directory
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>