Hi,
This is kind of weird to explain, I apologize if its difficult to follow.
Im a sysadm for a University website and I have a prob with the way some of our vhosts are setup. An example is the html source on one of the vhost sites refers to 2 directories, one is "images" and the other is "../../images". I would like to match the "../../images" folder but not "./images".
To make matters worse, the html is already at the top level that's trying to call "../../images". Obviously it cant go 2 directories up when your already at the top level. This was caused by having a website like www.domain.edu/acm/dept/sci/bio/user1 and then a vhost bio.domain.edu/user1 pointing to the same directory. The website had a /index.html that had relative links like ../../style/style.css and obviously that wont work on the vhost site. I know I can use abolsute links etc, but its ALOT of html to rewrite, and this issue keeps coming up.
I tried:
RewriteCond %{REQUEST_URI} \.\.\/\.\.\/images\/.*
and:
RewriteCond %{THE_REQUEST} \.\.\/\.\.\/images\/.*
But the rewrite log shows it tries to match "/images", not "../../images".
Is there a way to do this?? I will give you my firstborn if you help me fire this out.
Thanks!
Dan