Welcome Guest, Not a member yet? Register   Sign In
htaccess and multiple applications
#9

[eluser]Pascal Kriete[/eluser]
You're starting to mix things now, you can just add the asset folder to the allowed files/folders:
Code:
RewriteCond $1 !^(frontend_index\.php|images|assets|robots\.txt
If you have your images in your assets folder, then you can probably remove that. Also if you don't have a robots.txt file you can get rid of that, it's not needed.

I've never done this for two applications, but something like this should do it (using the cms example here):
Code:
RewriteRule ^cms$ backend_index.php [L]
RewriteRule ^cms/(.*)$ backend_index.php/$1 [L]

You have to add that in front of the other rules, so your final .htaccess file looks something like this:
Code:
RewriteEngine on

#Backend directories
RewriteRule ^cms$ backend_index.php [L]
RewriteRule ^cms/(.*)$ backend_index.php/$1 [L]

#Everything else
RewriteCond $1 !^(frontend_index\.php|assets)
RewriteRule ^(.*)$ /ci_test/frontend_index.php/$1 [L]


Messages In This Thread
htaccess and multiple applications - by El Forum - 02-20-2008, 10:10 AM
htaccess and multiple applications - by El Forum - 02-20-2008, 02:19 PM
htaccess and multiple applications - by El Forum - 02-20-2008, 02:28 PM
htaccess and multiple applications - by El Forum - 02-20-2008, 03:24 PM
htaccess and multiple applications - by El Forum - 03-30-2008, 02:20 PM
htaccess and multiple applications - by El Forum - 03-30-2008, 02:42 PM
htaccess and multiple applications - by El Forum - 03-30-2008, 02:55 PM
htaccess and multiple applications - by El Forum - 03-30-2008, 03:00 PM
htaccess and multiple applications - by El Forum - 03-30-2008, 03:10 PM
htaccess and multiple applications - by El Forum - 03-30-2008, 03:21 PM
htaccess and multiple applications - by El Forum - 04-01-2008, 03:03 PM
htaccess and multiple applications - by El Forum - 04-01-2008, 05:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB