httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject RE: RewriteMap not allowed here
Date Tue, 05 Feb 2002 00:08:09 GMT

> From: Korey G. [mailto:korey@awpg.com]

> Its not working, these are my entries
>
> 192.168.2.143- - [04/Feb/2002:17:29:27 -0500]
> [www.servera.com/sid#81e5514][rid#826ebb4/initial/redir#1] (2)
> init rewrite
> engine with requested uri /beer/index.html
> 192.168.2.143 - - [04/Feb/2002:17:29:27 -0500]
> [www.servera.com/sid#81e5514][rid#826ebb4/initial/redir#1] (1)
> pass through
> /beer/index.html
>
> >RewriteCond %{HTTP_REFERER} ^servera.com$ [NC]
> >RewriteRule (.*) /index.html
> >RewriteCond %{HTTP_REFERER} ^serverb.com$ [NC]
> >RewriteRule (.*) /index2.html

The easiest way to handle this stuff is to avoid the per-directory config
confusion by placing the Rewrite stuff in the main server context, outside
any <Directory> section.  Then, if necessary, you can make the RewriteRule
more specific, for example:

RewriteRule ^/beer/.* /index.html

Joshua.


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message