Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Rewrite not working


jdMorgan - 7:15 pm on Nov 6, 2009 (gmt 0)


If the parameters can be in any order, and some but not all could be missing and you need to redirect all of those variants with this rule, then you will need up to 15 RewriteConds, specifying the query string in all of the variations that you want to redirect. If *all* could be missing and you'd still want to redirect, then the query string is likely irrelevant, and you can remove the RewriteCond entirely.

However, if you are just trying to fix one incorrect URL in the Google SERPs, then what you have is fine unless you have apre-existing internal rewrite from the 'friendly' URL back to this same query-string URL that you are trying to redirect. If this is the case, then that pre-existing internal rewrite and this new redirect will countermand each other, leading to an infinite rewrite/redirect loop, and so you new rule here will need more work.

Jim


Thread source:: http://www.webmasterworld.com/apache/4020428.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com