Welcome Guest, Not a member yet? Register   Sign In
.htaccess for multiple applications?
#1

[eluser]Rein Van Oyen[/eluser]
Hi there,


I'm using 2 applications while using 1 CodeIgniter system. I have everything set up and working. Except for my mod_rewriting. Both of my files are in the root, 1 named index.php the other 1 is called admin.php.

Using following rules in my .htaccess removes the index.php in my url.

Code:
RewriteCond $1 !^(index\.php|admin\.php|admin|_images|_css|_js|_uploads|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

But when I add the following rules, I can't seem to point "admin" to "admin.php". It gives a CodeIgniter 404.

Code:
RewriteRule ^/admin$ /admin.php/$1 [L]
RewriteRule ^/admin/$ /admin.php/$1 [L]

Could anyone point me in the right direction? It would be highly appreciated.

Thanks in Advice,
Rein


Messages In This Thread
.htaccess for multiple applications? - by El Forum - 02-11-2011, 09:31 AM
.htaccess for multiple applications? - by El Forum - 02-11-2011, 02:38 PM
.htaccess for multiple applications? - by El Forum - 02-13-2011, 09:19 AM
.htaccess for multiple applications? - by El Forum - 02-14-2011, 01:14 PM
.htaccess for multiple applications? - by El Forum - 02-15-2011, 03:16 AM
.htaccess for multiple applications? - by El Forum - 02-17-2011, 01:45 AM
.htaccess for multiple applications? - by El Forum - 02-17-2011, 02:04 AM
.htaccess for multiple applications? - by El Forum - 02-17-2011, 07:55 AM
.htaccess for multiple applications? - by El Forum - 02-28-2011, 09:25 AM
.htaccess for multiple applications? - by El Forum - 02-28-2011, 09:51 AM
.htaccess for multiple applications? - by El Forum - 02-28-2011, 06:37 PM
.htaccess for multiple applications? - by El Forum - 03-03-2011, 03:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB