This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
LinkFreeze (Forum Locked Forum Locked)
 Helicon Tech : LinkFreeze
Subject Topic: URL Rewrite - Remove Query String
Author
Message |
rmiller
Newbie


Joined: 30 November 2006
Location: United States
Posts: 7
Posted: 28 June 2010 at 10:25am

I am attempting to redirect URLs indexed from an old ecommerce site to a new one. However, I am running into an issue where query strings are being appended to the new links.
 
 
I attempted the following, but it just redirects to the home page:
RewriteRule ^store/WsDefault.asp?Cat=FreshwaterPearlNecklace$ Pearl-Necklaces-c4.htm [NC,R=301]
 
Thanks.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 29 June 2010 at 9:20am

Need to add question mark to the end of the substitution string to avoid this:

RewriteRule ^store/WsDefault.asp?Cat=FreshwaterPearlNecklace$ Pearl-Necklaces-c4.htm? [NC,R=301]

See FAQ for issues like that.

__________________
Regards,
Anton
Back to Top
 

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

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum