glenelkins Posted November 27, 2006 Share Posted November 27, 2006 [code]RewriteEngine OnOptions +FollowSymlinksRewriteBase /connie/RewriteRule ^(.*)/(.*)$ index.php?p=$1&opt=$2[/code]As you can see this code lets me use urls such as "/admin/layout" but all the images vanish from the html page that is used inside the index.php to display the data...whats going on? Link to comment https://forums.phpfreaks.com/topic/28644-mod_rewrite-and-images/ Share on other sites More sharing options...
onlyican Posted November 27, 2006 Share Posted November 27, 2006 The code acts as if its in a folderso as you are not in the root, it tries to find the images in the folder Best way round this is add a slash at the begining of img srcinstead of<img src='images/myimage.jpg' />USE<img src=/images/myimage.jpg' /> Link to comment https://forums.phpfreaks.com/topic/28644-mod_rewrite-and-images/#findComment-131138 Share on other sites More sharing options...
trq Posted November 27, 2006 Share Posted November 27, 2006 Please dont multipost. Thread closed! Link to comment https://forums.phpfreaks.com/topic/28644-mod_rewrite-and-images/#findComment-131144 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.