Home load index.php as default page with rewrite url in codeigniter for windows server
Reply: 0

load index.php as default page with rewrite url in codeigniter for windows server

user1170
1#
user1170 Published in May 20, 2018, 10:15 am

here is my code which rewrite url in web.config file

    <?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="MyRule"> 
                    <match url="^(.*)$" /> 
                    <conditions> 
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> 
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> 
                    </conditions> 
                    <action type="Rewrite" url="index.php/{R:1}" appendQueryString="false" /> 
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration> 

this configuration works well with inner pages but fails to load default page of my website (it shows HTTP Error 403.14 - Forbidden)

How can i configure my application to run both rewrite url and default page in my codeigniter appliaction.

Please help if anyone know this

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.300242 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO