httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Medvedev" <medve...@rsdsoft.msk.ru>
Subject mod_rewrite condition question (redirecting to a file)
Date Wed, 19 Jun 2002 12:22:10 GMT
I need to redirect a particular client (I know its IP) to a particular file.
The rule follows:

RewriteEngine     on
RewriteLog     logs/rewrite.log
RewriteLogLevel     3
RewriteCond %{REMOTE_ADDR}     ^192\.168\.80\.240$
RewriteRule ^/(.*)$     D:/2036/sites/240/804/www/dos/dos.shtml

The following appears in the log:

(2) init rewrite engine with requested uri /
(3) applying pattern '^/(.*)$' to uri '/'
(2) rewrite / -> D:/2036/sites/240/804/www/dos/dos.shtml
(2) local path result: D:/2036/sites/240/804/www/dos/dos.shtml
(2) prefixed with document_root to
D:/2036/sites/240/804/wwwD:/2036/sites/240/804/www/dos/dos.shtml
(1) go-ahead with
D:/2036/sites/240/804/wwwD:/2036/sites/240/804/www/dos/dos.shtml [OK]

The question: how can I avoid the "prefixed with document_root" operation?

================================
Developer Express inc. [http://www.devexpress.com/]



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message