IIS URL rewriting to redirect querystring addresses to MVC style path to preserve old links

I am trying to preserve old links such as index.php?pageid=123 to the now current /accounts/home. No part of the original URL has to be included in the redirect.

I have a big list of old page links and their new address. I thought it would be really simple to say index.php?pageid=123 = /accounts/home but I can't see how to do it. Most of the examples I see are the other way around whereby your site uses query string and you want your URLs to be SEO friendly. I'm using IIS 7.5 to rewrite.



Got it sorted and it wasn't that hard really. Just needed to add the query string as a condition.

        <rule name="accounting" patternSyntax="Wildcard" stopProcessing="true">
            <match url="index1.php" />
                <add input="{QUERY_STRING}" pattern="page=accounts/accountsmain" />
            <action type="Redirect" url="business-services/accounting.aspx" appendQueryString="false" />

Need Your Help

How can I solve this variable issue?

android variables android-studio global-variables final

I know there are some questions like this , but none of the answers could solve my problem. So I'm gonna ask myself. How can I solve this problem? Sorry for don't specify more, I'm starting coding

How many bytes per inodes?

filesystems inode ext4

I need to create a very high number of files which are not very large (like 4kb,8kb).