QueryString Always Appended

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 34
Joined: 19 Feb 2013, 11:44

QueryString Always Appended

15 Mar 2013, 14:03

Hi there,
My rule is this:
Code: Select all
RewriteRule ^([^?/]+)/bargains/justlanded.asp /$1/used/index.asp [NC,L,R=301]


When I go to http://www.ac-et.com/video/bargains/justlanded.asp?div=Lighting

It goes to this http://www.ac-et.com/video/used/index.asp?div=Lighting

But I want it to go to http://www.ac-et.com/video/used/index.asp, what do I need to do to make sure the querystring isn't appended?

Cheers,

Steve

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

Re: QueryString Always Appended

15 Mar 2013, 21:48

Hello Steve,

I believe, we've done it before, Steve )))
You need to add '?' at the end of the destination URL:

Code: Select all
RewriteRule ^([^?/]+)/bargains/justlanded.asp /$1/used/index.asp? [NC,L,R=301]


Regards
Andrew

User avatar
Posts: 34
Joined: 19 Feb 2013, 11:44

Re: QueryString Always Appended

18 Mar 2013, 06:14

Hi Andrew,
My memory is getting really bad! Thanks again for the support!

Steve

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 4 guests