I have a Deluxe Windows Hosting account with Godaddy, and I'm trying to set up URL rewriting with Web.Config.
I read that GoDaddy has the IIS URL Rewrite plugin installed, but they have no support for it whatsoever (see here: http://help.godaddy.com/article/5443)
I tried a simple rewrite rule in my web.config
, but nothing happened:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rewriteMaps>
<rewriteMap name="StaticRedirects">
<add key="test.php" value="/test" />
</rewriteMap>
</rewriteMaps>
</rewrite>
</system.webServer>
</configuration>
When I visit test.php
, it doesn't get rewritten to /test
and no error is thrown. Any idea why?
Finally, the main rewriting I want to do is from rewrite.php?id=1
to /1
.
What matching rule would I have to use to accomplish this, assuming I can get rewriting to work at all?
Thanks in advance!