I have a number of inbound links reported by Google Webmaster Tools that contain objects that lead to 404 errors. I would like to create some URL rewriting rules that will work with IIS to take care of this. These rules should work on any page, since some links containing objects can be deep in several folders and be another file, which is index.php.
For example, rewrite rules should be able to handle:
www.mysite.com/index.php%3Fpage%3Dtest
www.mysite.com/folder/somepage.php%3Fvariable%3Dtest
and convert them to:
www.mysite.com/index.php?page=test
www.mysite.com/folder/somepage.php?variable=test
I tried to create my own rules and not very far. I found rules for Apache that handle this, but importing them using the IIS import rules tool does not work.
Here's what works for Apache (now we just need the IIS version):
This at least gives us an idea of ββwhat to consider when writing rules for rewriting the IIS URL.
source share