Forums

About Permalink ---> affected the source html code (2 posts)

  1. stovila
    Member
    Posted 2 years ago #

    Hello, maybe it's a noob question, but I couldnt find it in support archives.

    I tried to use permalink. So..

    From http://www.example.com/?p=7
    become --> http://www.example.com/archives/7

    From http://www.example.com/?page_id=1
    become --> http://www.example.com/post-slung

    The problem is, in my themes, all html source for image src, link src, and also link to other link page is like this

    example: <img src="images/index-1.jpg">
    so by default, it means,
    take image from http://www.example.com/images/index-1.jpg

    By using permalink, it changed
    it takes image from http://www.example.com/archives/7/images/index-1.jpg

    Which is nothing in there..

    Is there any way to set the default folder to root?
    Or I have to write the full URL for every src=" thing?
    (which that's the last thing I wanna do)

    Thx in advance =/

  2. Aergonaut
    Member
    Posted 2 years ago #

    If your images directory is at the root of your server, put a / in front of the path. This will tell the browser that you're specifying an absolute path, and it'll look for a example.com/images directory instead.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.