This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Help with Query String
Author
Message |
sandeepGonthkar
Newbie


Joined: 15 November 2011
Location: India
Posts: 6
Posted: 13 March 2012 at 4:55am

Hi All,

I need help with the Redirect Rule(new bie).

My source url is some what like below.

http://www.mydomain.com/sample/pagename.aspx?a=A&b=B&c=C

where the number of querystring can change.

i need to redirect it to new page where i add 1 querystring to the destination url  and append the remaining from source url

http://www.mydomain.com/sample/newpagename.aspx?custom=1&a=A&b=B&c=C

any help is really appreciated.



__________________
Sandy
Back to Top
 
HeliconA
Admin Group


Joined: 02 March 2012
Posts: 4142
Posted: 13 March 2012 at 6:46am

Hello,

Try using the following:

Code:
RewriteEngine on
RewriteBase /

RewriteRule ^sample/pagename\.aspx$ /sample/newpagename.aspx?custom=1 [NC,QSA,R=301,L]


Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version