How to rewrite and retain URL params

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 18 Jan 2013, 09:43

How to rewrite and retain URL params

18 Jan 2013, 09:49

Hi,

We have URLs of the form:

/example/filename1.asp?iframe=true&width=50%&height=50%
/example/filename2.asp?iframe=true&width=50%&height=50%
/example/filename3.asp?iframe=true&width=50%&height=50%u=xyz

We want to rewrite these to a new folder (e.g. /new) but with the same filename, for example to:

/new/filename1.asp?iframe=true&width=50%&height=50%
/new/filename1.asp?iframe=true&width=50%&height=50%&whatever=123

and retain all the URL params passed (query string).

How can we just make the rewrite retain all of the URL parameters and just change the filename (the filename need to remain the same)

Tried lots of different approaches with QSA etc and nothing works so far :(

Help appreciated.

Thanks,
Mark

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: How to rewrite and retain URL params

18 Jan 2013, 22:35

Please, define "we want to rewrite". Do you want to have a 301-redirect? Or do you want to have a rewrite?
What do you want a customer to insert in the address bar? and where do you want him to be taken to?

Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 42 guests