Hi there,
When you get into SEO friendly URL's, I find that defining some kind of global variable, which references back to your base path if you like, so that all your images can have absolute URLs instead of relative as SEO urls are known to cause problems with relative URLs (as URLs have directory like structure).
Either create some kind of helper function and echo out <?php echo base_url(); ?> before each image/css/javascript include file, or define a global variable and echo it out the same way across your pages.
This way when your domain changes, or you change host, you only have to change your base path in one place, and all your paths will be updated accordingly, and the good thing is you know it will always work regardless of what kind of URL you have.
Hope this helps, let me know if you need further clarification!
Main Topics
Browse All Topics





by: Hube02Posted on 2009-01-06 at 13:45:19ID: 23309723
What do the actual links look like in the document source dilivered to the browser? Are they relative from the document?
/>
What I mean is, does the actual link to the image look like:
<ims src="news/images/back.jpg"