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


I have a CodeIgniter installation which I want to 'duplicate' into 2 subdirectories so example.com, example.com/subdirectory1, and example.com/subdirectory2 all use the same CodeIgniter installation and work exactly the same when accessing the controllers, etc…

This is my current .htaccess file:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond $1 !^(index\.php|images|favicon\.ico|robots\.txt|resources|docs|media)
    RewriteRule ^(.*)$ /index.php/$1 [L]

<IfModule mod_mime.c>
    AddType application/x-apple-aspen-config .mobileconfig
Kristian Matthews-Kennington
Apple Certified Associate Mac Integration & Management 10.10

Messages In This Thread
CodeIgniter in Subdirectories Using .htaccess - by EpicKris - 12-05-2014, 04:15 PM

Theme © iAndrew 2016 - Forum software by © MyBB