httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Björn Zettergren <bjorn.zetterg...@basefarm.se>
Subject Re: [users@httpd] 'last' rewrite rule config
Date Mon, 25 Apr 2011 09:25:47 GMT
On 04/25/2011 08:25 AM, Shantanu Pavgi wrote:
> I have following set of rewrite rules in the apache config.
>
> {{{
>   RewriteRule ^robots.txt               /var/www/robots.txt  [L]
>   RewriteCond /var/www/trac/$1             !-d
>   RewriteRule ^/([[:alnum:]\-]+)(/?.*)    /index.html [L]

Hi,

Add a slash before robots.txt, "RewriteRule ^/robots.txt 
/var/www/robots.txt [L]".

/Björn

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message