This is a follow-up question to my previous question on this site. Maybe I should point out that the Apache server is running on a windows system, don't know if it matters.
My problem is following:
I have 2 drives J: and K:, both have a directory test (J:/test/ and K:/test/)
J:/test/ contains the file pink.html
K:/test/ contains the files red.html and blue.html
I want to access all files in J:/test/ and K:/test/ with the the same url:
This is an excerpt from my httpd.conf file:
Alias /test/ "J:/test/" Alias /test2/ "K:/test/" <Directory "J:/test/"> Order allow,deny Allow from all Options All MultiViews AllowOverride None RewriteEngine on RewriteCond /test/%(REQUEST_FILENAME) !-f #if we can't find the file in /test/ RewriteRule ^(.+) /test2/$1 [L] #rewrite url into /test2/something.html RewriteCond /test/%(REQUEST_FILENAME) -f #if we find the file in /test/ RewriteRule ^(.+) /test/$1 #should this even be necessary ? </Directory>
This works only partially, i can access red.html and blue.html at the K: drive but not pink.html on the J: drive. It seems to totally ignore the 2nd
RewriteCond-RewriteRule pair. How do I configure httpd.conf to access pink.html?
I have tried several approaches but to no use :-( I hope my question is clear and that someone could shed some light on this matter.
Thanks in advance! /Alex