IIS Error

HoldUp

dont even
Aug 31, 2017
242
32
Hi, I'm just making a hotel on my pc for fun and to learn how to do different things. I keep coming across this error. Could someone help -

 

Pinkman

Posting Freak
Jul 27, 2016
814
193
Replace your web config with this

<?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="dash.php?page={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 5">
<match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
 

HoldUp

dont even
Aug 31, 2017
242
32
Replace your web config with this

<?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="dash.php?page={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 5">
<match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="dash.php?url={R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Just done it and it's still coming up with the same error.
 

Kak

Posting Freak
Apr 21, 2017
951
165
import .htaccess into url rewrite. on your computer start bar type iis > websites > default website > look for url rewrite > import/add rule > open up wwwroot and import .htaccess into url rewrite> import/save
 

HoldUp

dont even
Aug 31, 2017
242
32
why do u need me to pm? i think i just explained how to do it. if youre trying to tv im not available on a computer atm
I've done it and now it's coming up with and when I try changing the web.config it keeps saying it's being edited somewhere else and reload it nd it changed back to how it was.
 

Kak

Posting Freak
Apr 21, 2017
951
165
you didnt fully install iis. it says asp and possibly something else wasnt installed.
 
All Application Development,
Static Content Compression
and under Management Tools select IIS Management Console, IIS Management Scripts and Tools and Management Service.
 

Users who are viewing this thread

Top