Welcome Guest, Not a member yet? Register   Sign In
how to make multiple application with two .htaccess
#1

[eluser]yudahebat[/eluser]
I make 2 application in 1 CI :
- web
-config
-...
-...
-views


-admin
-config
-...
-...
-views

I have 2 index.php:
-index.php for web application
-admin.php for admin application

I've been made 2 htacces for both of them
but only the admin working

the web still use index.php on url

can u help me to figure this out????
#2

[eluser]TheFuzzy0ne[/eluser]
You can only use, and will only need a single htaccess file. The question is, how will your htaccess know whether the incoming request is for the admin.php, or the index.php? I'd suggest setting up a subdomain. admin.yoursite.tld for admin pages, and *.yoursite.tld for normal pages. However, I would like to ask, why are you not running both applications together? Surely this would make it less complicated?




Theme © iAndrew 2016 - Forum software by © MyBB