Page is a not externally linkable
- Search Engines
-- Sitemaps, Meta Data, and robots.txt
---- Apache: execute "global" php script when robots.txt requested


rowan194 - 6:59 am on Aug 20, 2012 (gmt 0)


Hi all,

Wondering if it's possible to configure Apache to run a script when there is a request for a particular file. I guess one way would be a rewrite rule for the entire server (encompassing all hostnames), but I'm curious if there are any other solutions.

I want to log various details when robots.txt is fetched, but I don't want to have to configure each individual site to do it.

Thanks for any tips!


Thread source:: http://www.webmasterworld.com/robots_txt/4486406.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com