404 - File or directory not found [IIS ERROR]

TinyBuilder

Bike ✔
Mar 19, 2012
717
66
Hi, I setup IIS correctly, and when I enter my website, i get this error:
Error
404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.




Please someone help me!
 

Tommi69

Member
Jul 17, 2012
31
0
Know how to fix my error?
Delete the htaccess file at wwwroot, and create new txt file and put this in there:
CODE:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 2">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 3">
                    <match url="^(.*)\.htm$" />
                    <action type="Rewrite" url="{R:1}.php" />
                </rule>
                <rule name="Imported Rule 4">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="login.php?page={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 5">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="login.php?url={R:1}" appendQueryString="false" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
[/FONT]And save it to wwwroot called: web.config
 

TinyBuilder

Bike ✔
Mar 19, 2012
717
66
Delete the htaccess file at wwwroot, and create new txt file and put this in there:
CODE:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 2">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 3">
                    <match url="^(.*)\.htm$" />
                    <action type="Rewrite" url="{R:1}.php" />
                </rule>
                <rule name="Imported Rule 4">
                    <match url="^(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="login.php?page={R:1}" appendQueryString="false" />
                </rule>
                <rule name="Imported Rule 5">
                    <match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
                    <action type="Rewrite" url="login.php?url={R:1}" appendQueryString="false" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
[/FONT]And save it to wwwroot called: web.config

Wow i tried that and now i get another error:

Server Error
500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.
 

Tommi69

Member
Jul 17, 2012
31
0
Well, do you installed PHP 5.xx or something?

If you dont know, look at Web platform installer -> Search at "PHP" and there should be "PHP 5.4.9" install that, if you havent
 

Users who are viewing this thread

Top