Forum Moderators: phranque

Message Too Old, No Replies

redirecting a "+"

howto

         

nippi

2:46 am on Oct 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i seem to have gather a whole heap of incomign links to

mydomain.com/+

looking for some way to 301 to root, my usual rules don't seem to work.

anyone?

jdMorgan

2:54 am on Oct 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



May we have one of your usual rules as a basis for discussion?

Speculative answer: If using mod_rewrite rules or mod_alias RedirectMatch directives, the "+" character is taken as a regular-expressions quantifier meaning "Match one or more of the preceding character, alternate-character group, or parenthesized sub-pattern."

Therefore, if you wish to match a literal "+" in a pattern, you must escape it by preceding it with a backslash, as in "\+".

Jim