Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Simple rewrite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
KazzGee
Newbie
Newbie


Joined: 22 September 2008
Location: Denmark
Online Status: Offline
Posts: 1
Posted: 22 September 2008 at 3:24am | IP Logged Quote KazzGee

Hi all!

I hope one of you guys can help me..

I want all URL's ending with "*.html?about=X" to redirect to *.html"
X being a number. I have a faulty link causing Google to index pages with ?about= which directs visitors to a blank page, so if I could make a rule that simply ignores the ?about=X.

The current rule looks like this:
RewriteRule /+[^?/]+/+[^?/]+/+[^?/]+/(\d+)(?:-(\d+))?(?:-(\d+))?.html(?:\?(.*))? /default.asp\?prodCatId=$1(?2&supplierId=$2)(?3&productId=$3)(?4&$4:) [I,L]

Back to Top View KazzGee's Profile Search for other posts by KazzGee
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7598
Posted: 23 September 2008 at 10:57am | IP Logged Quote Lexey

RewriteRule ([^]+\.html)\?about=\d+ $1
Back to Top View Lexey's Profile Search for other posts by Lexey
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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