500 error after uploading web config
Having some issues after uploading my web.config file on to my hosting
server. 123.reg is my hosting provider.
I have placed the following web config into my root folder unfortunately I
now receive a 500 error on the server.
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="false" targetFramework="4.0" />
</system.web>
<location path="wordpress">
<system.webServer>
<!--<security>
<ipSecurity allowUnlisted="false">
<clear/>
<add ipAddress="###.###.###.####"/>
</ipSecurity>
</security>-->
<httpRedirect enabled="true"
destination="http://carltonmotorhomes.co.uk"
httpResponseStatus="Permanent" />
<!-- 301 permanent redirect -->
<httpRedirect enabled="true"
destination="http://carltonmotorhomes.co.uk"
httpResponseStatus="Found" />
<!-- 302 found redirect -->
<httpRedirect enabled="true"
destination="http://carltonmotorhomes.co.uk"
httpResponseStatus="Temporary" />
<!-- 307 temporary redirect -->
<httpRedirect enabled="true"
destination="http://carltonmotorhomes.co.uk" exactDestination="true"
/>
<!-- 302 (found) redirect, to a specific page or directory -->
</system.webServer>
</location>
</configuration>
So as you can see I am trying to ensure access is restricted to the
'wordpress' folder unless ip address matches and trying to handle 300
errors.
Any suggestions?
No comments:
Post a Comment