Link to home
Start Free TrialLog in
Avatar of gunnar2003
gunnar2003

asked on

get apache to rewrite url call

I would like to know if its possible to get apache to rewrite a call to

www.domain.com/robots.txt (by crawlers) to www.domain.com/ressources.php?res=robots.txt

if so - how would I approach this problem?
ASKER CERTIFIED SOLUTION
Avatar of dorward
dorward

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gunnar2003
gunnar2003

ASKER

wow that was easy. I thought this would require some mod_rewrite magic.

thx
if I would use mod_rewrite .. what would be the consequences? which code is returned to a search engine when it calls robots.txt ? a 301 ? is that better then what happens when I use mod_rewrite?

I'd say mod_rewrite cannot be detected...