glenelkins Posted November 27, 2006 Share Posted November 27, 2006 HiMy .htaccess file:[code]RewriteEngine OnOptions +FollowSymlinksRewriteBase /books/RewriteRule ^(.*)/(.*)$ search.php?format=$1&isbn=$2[/code]Now this works fine to enable urls such as: http://localhost/books/format/isbn_numberBut, the initial file is "index.html" , there is a logo on this page with the file src as: "images/logo.jpg"When the page loads up, the logo image does not display. I look at the source and its pointing to the correct place, i even tried changing the src to "/images/logo.jpg" and "http://localhost/books/images/logo.jpg" and "/books/images/logo.jpg"None of these work, why are my images vanishing? I have seen a few posts around stating to include the full path to the image in the HTML document but as I just explained this does not worklocalhost/books/ Link to comment https://forums.phpfreaks.com/topic/28632-htaccess-mod_rewrite-and-my-images/ Share on other sites More sharing options...
cxer Posted February 28, 2007 Share Posted February 28, 2007 yes i agree with you,i have same problem like you and i still dont find any solve.if a experienced friend help us we will so happy :)Thanks. Link to comment https://forums.phpfreaks.com/topic/28632-htaccess-mod_rewrite-and-my-images/#findComment-196371 Share on other sites More sharing options...
cxer Posted February 28, 2007 Share Posted February 28, 2007 Hi [b]glenelkins[/b]if you still have problem,this is the solution[b]RewriteEngine OnRewriteBase /[b]RewriteRule ^prefabrik/images/(.*)$ images/$1[/b]RewriteRule ^prefabrik/(.*).html index.php?id=$1[/b]and if you use two variables solution changes like that,[b]RewriteEngine OnRewriteBase /RewriteRule ^prefabrik/tekkat/images/(.*)$ images/$1RewriteRule ^prefabrik/tekkat/(.*).html /index.php?id=26&pl=$1[/b]take care,bye :) Link to comment https://forums.phpfreaks.com/topic/28632-htaccess-mod_rewrite-and-my-images/#findComment-196470 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.