.net - GoDaddy Web.Config URL Rewrite not working -
i have next error causing me pull hair out, , godaddy back upwards absolutely terrible. response "we can't help you". can see wrong web.config below? works on iis on local machine.
there's 2 problems:
1) 500 error when rewrite
portion included. when remove works fine.
2) can't debug output print screen.
here's web config:
<?xml version="1.0"?> <configuration> <configsections> </configsections> <system.web> <compilation debug="true" targetframework="4.0"/> <!--maxrequestlength = maximum upload size =- 4096kb = 4mb--> <httpruntime maxrequestlength="409600000"/> </system.web> <system.webserver> <rewrite> <rules> <!--the next rule work when published--> <rule name="construction" stopprocessing="true"> <match url="construction\.aspx" negate="true"/> <conditions> <!-- dont ignore own ip --> <add input="{remote_addr}" pattern="xxx.xxx.xxx.xxx" negate="true"/> </conditions> <action type="redirect" url="construction.aspx" redirecttype="found"/> </rule> </rules> </rewrite> </system.webserver> </configuration>
in case utilize rewrite
, i'm not escaping periods in match's url attribute. have tried <match url="^construction.aspx$" negate="true"/>
?
admittedly stretch, it's been while since i've dug docs this.
.net debugging url-rewriting web-config godaddy
No comments:
Post a Comment