base href [SOLVED]

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

base href [SOLVED]

Post by s.dot »

I am using an apache mod rewrite to redirect mydomain.com/photos/ to albums.php

To avoid browsers thinking that all the links on that page should be in the directory /photos/page.php, rather then where they actually are /page.php, i've used the base tag.

Code: Select all

<base href="http://www.mydomain.com/">
This is working fine for me and anyone else i've asked except one person. It's really confusing me. His page is displaying everything as if it were in the /photos/ directory.

He is using avant browser (but also tried on IE) and windows XP operating system.

I've asked him to clear his cache and history and yadda yadda, but no luck. It's still doing it to him.

Anyone know why this could be?
Last edited by s.dot on Mon Jun 05, 2006 12:26 am, edited 1 time in total.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

base tag in the body seemed to work for mostly everyone. but putting it in the <head> (where it should be) made it truely work for everyone.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Yes, the base tag needs to me in the head to work everywhere. I have recently been using a BASE template tag in all my templates and have my Response class post process it to replace it everywhere in the final output. That way I can not only use it in the base tag in the head but in all URLs.
(#10850)
Post Reply