Current location: Hot Scripts Forums » Programming Languages » PHP » PHP .htaccess mod_rewrite directory issue


PHP .htaccess mod_rewrite directory issue

Reply
  #1 (permalink)  
Old 11-04-11, 10:59 AM
twhitacre twhitacre is offline
New Member
 
Join Date: Nov 2011
Location: Paris
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
PHP .htaccess mod_rewrite directory issue

Hi Everyone,

This is my first time posting, but hopefully someone can help me with a little problem that I have been having. I am trying to clean up the URL for my website using mod_rewrite. I have a blog area which lists the blog posts for the past 3 months. (http://www.website.com/blog). And when you click on a post it takes you to the specific post (http://www.website.com/blog/entry.php?id=##). I have gotten the mod_rewrite to let me change the URL to (http://www.website.com/blog/YYYY/MM/DD/title) but it can no longer local the .css/images/.js files because they are not properly linked within the directories.

Does anyone have any advice on how I can get around this issue. In theory I should just add multiple "../../../" to all my images so that they appear. But the forum posts contact links to different areas within the site.

Any advice would really be helpful.

Thanks in advance.

-T
Reply With Quote
  #2 (permalink)  
Old 11-05-11, 06:40 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
Can you post your mod rewrite code and an example of your html code with a working and non-working link?
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
Reply

Bookmarks

Tags
advice, directories, location, mod_rewrite, php


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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Mailing Spam issue creativeartist PHP 2 08-14-08 06:58 AM
Need a php script that directs user to specific directory mtanner Script Requests 5 06-11-04 02:02 PM
how to create a directory using PHP davidklonski PHP 1 06-01-04 08:53 AM
Need Epinions-lite system in PHP & MYSQL wali001 Job Offers & Assistance 4 01-12-04 06:02 AM


All times are GMT -5. The time now is 08:53 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.