CodeIgniter in Subdirectories Using .htaccess |
12-05-2014, 09:15 PM
(This post was last modified: 12-05-2014, 09:17 PM by John_Betong. Edit Reason: added sub_domain_root )
I backup projects like this:
1. copy the complete project into a sub_domain_root/whatever directory 2. copy this .htaccess into your sub_domain_root DirectoryIndex index.php index.html RewriteEngine on # MAYBE adjust the following to your own paths # RewriteCond $1 !^(index\.php|images|css|robots\.txt|favicon\.ico|Sitemap\.xml|sitemap\.xml) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?$1 [L] 3. copy your index.php into your sub_domain_root AND adjust paths Demo: http://test-007.anetizer.com/ |
Messages In This Thread |
CodeIgniter in Subdirectories Using .htaccess - by EpicKris - 12-05-2014, 04:15 PM
RE: CodeIgniter in Subdirectories Using .htaccess - by John_Betong - 12-05-2014, 09:15 PM
RE: CodeIgniter in Subdirectories Using .htaccess - by trentramseyer - 12-06-2014, 04:11 AM
|