httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evgeny Chuykov <ge...@baik.ru>
Subject [users@httpd] RewriteMap &Co
Date Wed, 23 Oct 2002 05:55:44 GMT
Hi all.

Can i define RewriteMap in the httpd.conf file and use it in
the .htaccess file? Will it work at all?

I'm trying map URLs to filesystem by first directory in request. Map information
is in the plain text file. Is there any mistakes except
"httpd.conf - .htaccess" related?

http.conf part:

RewriteEngine On
RewriteMap     map txt:/path/map.txt


.htaccess part:

RewriteEngine On
RewriteCond     %{REQUEST_URI}         ^/([^/]+)/.*$
RewriteCond     %{map:%1}              ^(.+)$
RewriteRule     .*                     /dirs/%1/


The map.txt file consist of:
#map
dir         rewriteDir
#EOF map

Best regards, Evgeny.


---------------------------------------------------------------------
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