Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter IIS 7 URL Rewriting
#1

[eluser]Unknown[/eluser]
I know there are some posts already but what has been suggested is not working. I have been working this one for a few hours now trying get this to work. I have a CodeIgniter website that use to be on an Apache server running fine. I was using the Apache URL Rewriter for the URL in order to hide the index.php. For some reason I cannot get this to work on IIS. I have Googled it and came up with several different options but some either didn't work or redirected me to my root directory.

Below is my rule from the web.config file:
Code:
<rewrite>
        <rules>
             <rule name="Clean URL" stopProcessing="true">
                <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="true" />
            </rule>
        </rules>
    </rewrite>
The current configuration will send me back to my root directory. My website is located at an example URL below:

http://domain/v2.3.1 - This will bring me to my main page

however

http://domain/v2.3.1/test - Will take me back to http://domain but the URL never changes from http://domain/v2.3.1/test




Theme © iAndrew 2016 - Forum software by © MyBB