Welcome Guest, Not a member yet? Register   Sign In
Codeigniter web.config index.php rewrite inside a subdirectory
#3

(This post was last modified: 11-20-2018, 01:05 PM by ciadmin.)

(10-26-2018, 11:06 PM)puneetkumar Wrote: It's for webconfig file to remove index.php

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <system.webServer>
   <rewrite>
     <rules>
       <rule name="Imported Rule 1" stopProcessing="true">
         <match url="^(.*)$" ignoreCase="false" />
         <conditions logicalGrouping="MatchAll">
             <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
             <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
         </conditions>
         <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true" />
         </rule>
     </rules>
   </rewrite>
 </system.webServer>
</configuration>
The above code not working for me. my folder structure as follow
httpdocs
|- admin
|--|- application
|--|- system
|--|- index.php
|--|- web.config
|
|- application
|- system
|- index.php
|- web.config
this hosted in windows hosting server. if i add $config['index_page']='index.php'; in config file under application/config/config.php. site is working but when i remove $config['index_page']=''; like this that is showing 404 page not found error.please help me out from this issue.
Thanks
[/quote]
Reply


Messages In This Thread
RE: Codeigniter web.config index.php rewrite inside a subdirectory - by acharjeeavijit - 11-20-2018, 08:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB