Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Sep 19th, 2005, 6:57 PM   #1
Eryk
Programmer
 
Join Date: Jul 2005
Posts: 62
Rep Power: 4 Eryk is on a distinguished road
Apache mod_rewrite

I am on the quest to make my URL's more user friendly.
I have decided to use the oh-so-common method of:
/somevarhere/anothervarhere/etc/
instead of
index.php?a=somevarhere&b=anothervarhere&c=etc

The problem is that the file paths inside the HTML page (to images and css files) detects the relative path as from the mod_rewritten URL as opposed to the actual directory.

So if I have this image path in a file:
images/bg.gif

It would turn out to be:
/somevarhere/anothervarhere/etc/images/bg.gif

I'm not really sure how to fix this, but any help is much appreciated.
Eryk is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:28 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC