CodeIgniter and Old-style PHP -


i have domain, let's somedomain.com. have admin page somedomain.com/admin. pages coded in plain php. re-wrote somedomain.com in codeigniter. not want touch somedomain.com/admin now.

how make work? when go somedomain.com/admin, looking admin controller, of course not exist. have index.php file in admin folder, cannot figure out way access index file.

thank you.

you should post .htaccess se. anyway. should exclude "admin" directed index.php

something this

rewriteengine on rewritecond %{http_host} ^domain\.com$ [nc] rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,l] rewritecond %{query_string} ^(act=.*)$ [nc] rewriterule ^(.*)$ index.php?%1 [l] rewritecond $1 !^(admin|index.php) [nc] rewriterule ^(.*) /index.php?/$1 [l] 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -