This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: images and links (Topic Closed Topic Closed)
Author
Message |
percival_b18
Newbie


Joined: 20 June 2008
Location: Philippines
Posts: 8
Posted: 20 June 2008 at 11:47pm  

Hi I have a task that formats the website url

from http://websiteaddress.com/categories.aspx?categoryid=100&productid=10

To http://websiteaddress.com/anytext/100/10/

It works fine on the rewriting however the images in my pages won't display properly and the paths are rendered incorrectly

e.g. I have page that displays an image <img src="images/test.gif"> the original url will render http://websiteaddress.com/images/test.gif

but when the url is rewritten it will render

http://websiteaddress.com/anytext/100/10/images/test.gif

so the images won't display. I tried modifying my src's by adding "../../../images/test.gif" and worked, but the images are many and contains more in my database. is there any other way to accomplish this without modifying the links?

 

Thanks in advance.

 

 

 

 



__________________
percival
Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 23 June 2008 at 8:02am  

This is common problem of incorrect document base. You need to use root-relative links to your images or HTML <BASE> tag to explicitly specify correct document base for pages.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
percival_b18
Newbie


Joined: 20 June 2008
Location: Philippines
Posts: 8
Posted: 24 June 2008 at 3:50am  

 

Thanks so much I got it.



__________________
percival
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum