How to rewrite and retain URL params
2 posts
• Page 1 of 1
- megawombat
- Posts: 1
- Joined: 18 Jan 2013, 09:43
How to rewrite and retain URL params
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
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
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: How to rewrite and retain URL params
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
What do you want a customer to insert in the address bar? and where do you want him to be taken to?
Regards
Andrew
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 42 guests