Welcome Guest, Not a member yet? Register   Sign In
CSS path after IIS url rewrite
#1

[eluser]vertmonkee[/eluser]
I followed the instructions on this page http://codeigniter.com/wiki/Miscellaneous/ and everything works fine for removing index.php from urls.

This has now caused my CSS file to not be found. The file is in a folder structure like this from the root

assets/css/stylesheet.css

I've tried the following

http://mysite.com/assets/css/stylesheet.css

/assets/css/stylesheet.css

assets/css/stylesheet.css

But none of those options work.

My web config file looks like this
Code:
<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <system.webServer>

        <rewrite>

            <rules>

                <rule name="codeigniterRuleOne">

                    <match url="(index.php|robots.txt|images|test.php)" />

                </rule>

                <rule name="codeigniterRuleTwo">

                    <match url=".*" />

                    <action type="Rewrite" url="index.php/{r:0}" appendQueryString="false" />

                </rule>

            </rules>

        </rewrite>

    </system.webServer>

</configuration>

Can anyone suggest how to fix this? Thanks for any help


Messages In This Thread
CSS path after IIS url rewrite - by El Forum - 04-15-2010, 11:31 AM
CSS path after IIS url rewrite - by El Forum - 04-15-2010, 11:39 AM
CSS path after IIS url rewrite - by El Forum - 04-15-2010, 12:05 PM
CSS path after IIS url rewrite - by El Forum - 04-15-2010, 12:08 PM
CSS path after IIS url rewrite - by El Forum - 04-15-2010, 12:09 PM
CSS path after IIS url rewrite - by El Forum - 04-15-2010, 12:58 PM
CSS path after IIS url rewrite - by El Forum - 04-15-2010, 01:14 PM
CSS path after IIS url rewrite - by El Forum - 04-15-2010, 01:52 PM
CSS path after IIS url rewrite - by El Forum - 04-15-2010, 02:09 PM
CSS path after IIS url rewrite - by El Forum - 04-15-2010, 02:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB