Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

How to redirect php url with parameters to aspx url with same parameters?

$
0
0

Hi,
I've recently migrated my old php website to asp.net.

I need to write a redirect script of some sort that does the following redirection automatically for urls which have parameters (usually parameter values have been retrieved from a database).
http://mywebsite.com/someotherpage.php?id=*
to
http://mywebsite.com/some/otherpage.aspx?id=*
This needs to be done for a specific page which has been moved to its own folder.

I then need to redirect all my other php pages to their new 1-1 mapping of aspx pages. Is there another script that I could write that accomplishes this? Some of these pages will have url parameters as well.
For example -
http://mywebsite.com/somepage.php?id=*
to
http://mywebsite.com/somepage.aspx?id=*

and

http://mywebsite.com/page1.php
to
http://mywebsite.com/page1.aspx


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>