You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marcin Orlowski <ca...@wfmh.org.pl> on 2003/08/18 10:25:14 UTC
[users@httpd] changing order of mod_rewrite and mod_dir?
Hi,
I use Apache 1.3.x and wrote some basic ruleset to rewrite AAA.domain.com
to domain.com/AAA It all works fine but... When I try to open
http://AAA.domain.com get RewriteLog shows mod_dir come first and expands
the URI with what fits of DirectoryIndex. Say, it picks 'index.php' as this
file exists for the AAA.domain.com's DocRoot. So we got
http://AAA.domain.com/index.php now. Then, my rules rewrite it to
http://domain.com/AAA/index.php which may fail if there's no index.php in
AAA subdir. My question is how can I ensure mod_dir would not be invoked
before mod_rewrite rules get completed, so default index would be picked
for destination directory? I just browsed the manual and it looks AddModule
might be what I look for, but haven't tried it yet (neither I'm sure it
rings the bells). Thanks in advance for any help.
Regards,
--
And he said: "God CTRL-S the Queen"...
Marcin http://wfmh.org.pl/~carlos/
mailto:marcin@orlowski.com
---------------------------------------------------------------------
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