httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Donker <>
Subject [users@httpd] Mod_Rewrite question
Date Wed, 25 Jun 2003 23:44:31 GMT
Hi guys,

1st of all, I'm a total newbe to both this mailinglist and mod_rewrite, 
so pardon me if I'm asking this question while it has been asked a 
zillion times before, or if it is the wrong place to ask it.
My problem is the following:

I'd like to define a DocumentRoot based on the referer. So, if referer 
would be, docroot should be 
/server/ If ref is, then 
My (non-functional) rule is:

RewriteEngine on
RewriteCond %{HTTP_REFERER}       !^$ [NC]
RewriteCond %(DOCUMENT_ROOT)    !^/var/www/html$
RewriteRule  ^/$1        /server/ [R,L]

Obviousely, this doesnt DO I make it work???
Thanks for any hints


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message