Page is a not externally linkable
- Search Engines
-- Search Engine Spider and User Agent Identification
---- Undefined Error in Logs


keyplyr - 12:07 am on Aug 1, 2012 (gmt 0)


Alright, alright... I changed it:

RedirectMatch 301 ^/undefined http://www.example.com/

Actually, what the $1 does do is redirect any added "undefined" on any other page to the index page... so:

http://www.example.com/widget.html/undefined

gets redirected to:

http://www.example.com/


But since these "undefined" params have so far only been present on base URLs, then the extra characters aren't really necessary.


[added]
Added the slash here. It's in the code but missed it in the cut'n paste here. The $1 did in fact do what it was intended to do. The "1" means the first, or base. Been in use for many years. Might not work on your server config though.

[edited by: keyplyr at 12:50 am (utc) on Aug 1, 2012]


Thread source:: http://www.webmasterworld.com/search_engine_spiders/4480179.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com