php - Problems with Multiple Applications Setup in Codeigniter 3
I know this question has been asked numerous times but couldn't find the definitive solution to what I am trying to do.
I am trying to serve multiple apps using single codeigniter 3 installation simultaneously. Specially frontend, backend and other vendor specific interface. This is required because each app has its own login and need to maintain its unique session.
I have gone through codeigniter 3 manual
I have setup my app this way as suggeted
appfrontend
appbackend
As suggested, I have two index files which routes to each application.
index.php -> appfrontend
admin.php -> appbackend
As suggested in documentation https://www.codeigniter.com/userguide3/general/urls.html#removing-the-index-php-file
My ".htaccess" file have
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
This removes the index.php for frontend and that's fine.
Question: How to remove admin.php as well from the URL?