Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: images and links Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
percival_b18
Newbie
Newbie


Joined: 20 June 2008
Location: Philippines
Online Status: Offline
Posts: 3
Posted: 20 June 2008 at 11:47pm | IP Logged Quote percival_b18

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 View percival_b18's Profile Search for other posts by percival_b18
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6466
Posted: 23 June 2008 at 8:02am | IP Logged Quote Yaroslav

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 View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
percival_b18
Newbie
Newbie


Joined: 20 June 2008
Location: Philippines
Online Status: Offline
Posts: 3
Posted: 24 June 2008 at 3:50am | IP Logged Quote percival_b18

 

Thanks so much I got it.



__________________
percival
Back to Top View percival_b18's Profile Search for other posts by percival_b18
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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