Help with rewriting a querystring
2 posts
• Page 1 of 1
Help with rewriting a querystring
Hello,
We have some incoming links pointing to:
http://www.mysite.com/Thumbnail.asp?Ima ... false&WM=T
How do we rewrite it to become:
http://www.mysite.com/showThumb.aspx?Im ... ype=medium
Basically we just need to put the Imagename from querystring and remove the ".." if in the querystring value.
Thank you for any help provided.
We have some incoming links pointing to:
http://www.mysite.com/Thumbnail.asp?Ima ... false&WM=T
How do we rewrite it to become:
http://www.mysite.com/showThumb.aspx?Im ... ype=medium
Basically we just need to put the Imagename from querystring and remove the ".." if in the querystring value.
Thank you for any help provided.
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Help with rewriting a querystring
Hello,
Lets try to use:
Regards
Andrew
Lets try to use:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^Image=(?:\.\.)?([^&]+)&.*$ [NC]
RewriteRule ^Thumbnail\.asp$ /showThumb.aspx?Image=%1&iType=medium? [NC,R=301,L]
Regards
Andrew
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 15 guests