What are URLs relative to?

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

 



What are relative URLs relative to? For example, if you define an error page
in .htaccess and you have relative URLs in the error page itself (although
I've heard it's better to have absolute URLs in there), are those relative
URLs resolved relative to:

a) the physical location of that error page
b) the location of the requested URL (e.g. site.com/friendlyURL)
c) the location of the rewritten URL (e.g.
site.com/subdir1/subdir2/page.abc?hello=true)

I saw the following from
http://www.yourhtmlsource.com/sitemanagement/custom404error.html, which is
the reason behind this question:

"Since your 404 page might be served up from any subdirectory of your site,
make sure all links and image sources are defined absolutely. For instance,
use href="/index.html" instead of href="../../index.html""

Thanks.
-- 
View this message in context: http://www.nabble.com/What-are-URLs-relative-to--tf2957180.html#a8272516
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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@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