Public feed #724468

ribasushi

public text v1 · immutable
Raw Edit
·published 2007-10-03 16:51 UTC
rendered paste body
Correct way to verify if the content pointed by URI /robots.txt is a physical file, and if this is not the case serve some other file:

RewriteEngine on                                                                                                                                               
RewriteCond %{LA-U:REQUEST_FILENAME} !-f                                                                                                                       
RewriteRule ^/robots\.txt$ /etc/apache2/config/robots.txt.default [L,NS]