php - Codeigniter multiple application -


i'm new .htaccess. have 2 codeigniter project.

i have structured project this

parent-folder --frontend (my frontend codeigniter project) --backend (my backend codeigniter project) 

when hit example.com should go frontend , when hit example.com/admin should go backend.

i'm not getting how implement using .htaccess.

try this

parent-folder(your frontend codeigniter project) --admin (your backend codeigniter project) 

your front end ci project must in root folder , admin directory must inside root folder need 2 separate .htaccess files. files , folders inside frontend folder must transferred parent-folder.

like this:

parent-folder --.htaccess(.htaccess frontend) --admin ----.htaccess(.htaccess admin) 

just make sure specify admin .htaccess file youre in admin folder in rewritebase.

parent-folder:

rewritebase / 

admin

 rewritebase /admin 

:)


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -