html - Base tag not working correctly -



html - Base tag not working correctly -

i have code here @ top of pages:

<base href="http://example.com/dev/">

and in page (http://example.com/dev/index.php/foo/bar/) have code:

<link rel="stylesheet" type="text/css" href="style/common.css" />

however browser keeps trying load:

http://example.com/dev/index.php/foo/style/common.css

when should be:

http://example.com/dev/style/common.css

**update **

<html> <head> <base href="http://example.com/dev/" /> <link rel="stylesheet" type="text/css" href="/style/video.css" /> <link rel="stylesheet" type="text/css" href="/style/common.css" />

am doing wrong?

peter

i had similar problem. problem occurred when page fed through cgi. did not work me:

<base href="http://example.com/dev/">

but, next does:

<base href="/dev/">

html hyperlink base

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -