my website folder structure is like below...
Application Root
|- administration
|--|- application
|--|- system
|--|- index.php
|--|- web.config
|
|- application
|- system
|- index.php
|- web.config
Two CI framework installed here.
- site root
- administration folder
Here I am talking about the administration subfolder.
My web.config URL Rewrite is like below.
<rules>
<rule name="Rewrite to index.php">
<match url="index.php|robots.txt|images|test.php" />
<action type="None" />
</rule>
<rule name="Rewrite CI Index">
<match url=".*" />
<conditions>
<add input="{REQUEST_FILENAME}" pattern="css|js|jpg|jpeg|png|gif|ico|htm|html" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
</rules>
problem is, if I remove index.php from $config['index_page'] of site_root/administration/application/config/config.php, any controller function shows 404 page not found. The site root web.config actually doing this.
I want to remove index.php from URL inside the subdirectory.
1. How could I perform it through web.config ?
2. How could I perform it through .htaccess ?
I found THIS, but got no answer.
web.configfile.) but I have to apply this in Linux server also.