Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter in Subdirectories Using .htaccess
#2

(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/
Reply


Messages In This Thread
RE: CodeIgniter in Subdirectories Using .htaccess - by John_Betong - 12-05-2014, 09:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB