Thread: Php -> Html
View Single Post
  #5 (permalink)  
Old 22-11-04
Frostie's Avatar
Frostie Frostie is offline
Moderator
 
Join Date: Aug 2003
Location: Wirral
Posts: 3,023
Thanks: 12
Thanked 13 Times in 6 Posts
Frostie is on a distinguished roadFrostie is on a distinguished road
  Almost there

Well after 5 minutes, have almost got mod-rewrite working using the following in my .htaccess file;

#begin mod rewrite
RewriteEngine On
Options +followsymlinks
RewriteBase /

# rewrite static to dynamic
RewriteRule ^catalog/(.*)\.html$ /catalog.php?item=$1

#end mod


Now the links and files load without any problems, but the images don't? The problem is when the catalog/123.html page loads up, it tries to load the images as follows;
catalog/images/table_bot.gif

It should be loading them from;
images/table_bot.gif

Is there a simple mod I can make, or do I have to go through all my files and link directly to the images (http://www.mydomain.com/images/table_bot.gif) ?
Reply With Quote