Re: relative links get broken when adding vhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/2/07, Dan McDonald <mutex77@xxxxxxxxx> wrote:

Now there's problems.
biofrogs.domain.edu/style/style.css and
www.domain.edu/style/style.css are pointing to
completely different files. ../../../images/icon.jpg
wouldnt even be accessible on the subdomain unless you
use a absolute link etc etc. Because the DocumentRoot
changed obviously all these relative links are broken.


Is there a way to fix this other than writing the
html, or making symlinks in the new DocRoot? I really
wanted mod_rewrite to match a "../../file" request,
but it just matches the file it points to.

Any ideas would be great!

Apache never sees a request for a "../../file", because relative links
are resolved at the client before a request is made.

mod_proxy_html or mod_line_edit could probably be configured to do
live fix-ups on the html pages, at the expense of some additional
complexity. But a better idea is just to fix your html.

Joshua.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux