This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: QUERY_STRING redirects
Author
Message |
sealmode
Newbie


Joined: 20 May 2010
Location: United States
Posts: 9
Posted: 18 February 2011 at 1:00pm

I need help redirecting some 404's from Google Webmaster Tools.  Here is an example URL which needs to be redirected

/blog/page/4/?s

I currently have:

RewriteCond %{QUERY_STRING} ^s
RewriteRule /blog/page/4/ /blog/ [I,O,RP,U,L]

This currently redirects /blog/page/4/?s to /blog/ which I do want, but also redirects /blog/page/4/ without the query_string which is a legitimate page.  Any help is greatly appreciated.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 21 February 2011 at 2:44am

Could you please clarify the version of ISAPI_Rewrite you are using - is it 2 or 3.
'Cause your syntax is correct neither for one not for another version.

__________________
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