how to not use relative links in html, but everytime starting from the domain.

Posted by Andy on Stack Overflow See other posts from Stack Overflow or by Andy
Published on 2010-04-24T21:15:25Z Indexed on 2010/04/24 21:23 UTC
Read the original article Hit count: 138

Filed under:
|
|
|

Hi, I'm trying to make a page for use with wordpress and it's almost working, The page I want to use is an HTML page with designated space for it within certain DIVs.

I'm encountering the problem of wordpress using the wrong links to kind of everything. I will probably have to change every link to http://www.mydomain.com/sub/folder/image.jpg while there are many links. the page is positioned in a subfolder, there where wordpress is installed on the server.

But other pages are positioned in the root, and retrieve all other files directly starting from the domain so writing /sub/folder/image.jpg is enough. Is there a way I could get this to work with html/php files in sub folders as well (so when typing a link like /sub/folder/image.jpg they retrieve http://www.mydomain.com/sub/folder/image.jpg and not http://www.mydomain.com/sub/folder/sub/folder/image.jpg

thanks!

© Stack Overflow or respective owner

Related posts about html

Related posts about php