I have just replaced a site with a new Wordpress based site. Everything works great except I can't get 301 redirects to work.
This is the start of my Web.config:
Simple enough, right? The rewrite for Wordpress works fine but the redirect seems to be being ignored.Code:<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Contact" stopProcessing="true"> <match url="/contact\.aspx" /> <action type="Redirect" url="/contact/" /> </rule> <rule name="Main Rule" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php" /> </rule> </rules> </rewrite>
This really has me stumped. Any help greatly appreciated.
P.S. I am using IIS 7 (Server 2003)



Reply With Quote



Bookmarks