I use <base href="/">
to make my site run correctly with mod_rewrite and it works perfect on all browsers except Internet Explorer. Is not loading css styles and javascripts. How can i deal with this
Asked
Active
Viewed 3,881 times
1

Bengau
- 175
- 5
- 14
-
This is a known bug and can be fixed with javascript: http://stackoverflow.com/a/13373180/482115 – degenerate May 22 '15 at 16:04
2 Answers
0
I don't know if this will fix your issue, but the base
tag is supposed to contain an absolute path, you are specifying a relative one.
An absolute path would be something like:
<base href="http://example.com/" />
From http://www.w3.org/TR/html4/struct/links.html#h-12.4
These other questions may help you:

Community
- 1
- 1

Nathan Villaescusa
- 17,331
- 4
- 53
- 56
-
And do you think i don't read this before asking the question? Is nothing wrong using base like i do.
or gives me the same results on other browsers work in IE don't – Bengau Oct 07 '12 at 20:04
0
As Nathan said - using an absolute path for IE is necessary (dont know why but it behaves differently than other browsers.. surprise surprise..)
You might even find the following link helpful: http://notes.minty.org/cgi-bin/wiki.pl?Fixing_Base_Href_Javascript_Document.Location_For_Internet_Explorer

Sydney Boy
- 143
- 1
- 2
- 9