Hi all, using .htaccess I have somehow managed to translate urls like "http://www.xyz.com/test123/" to "http://www.xyz.com/test123/index.php?aId=test123". Now the big problem is that, images are not showing in the page. Let me explain all. I'm maintaining a folder structure like <doc_root>/<sub_folder>/<images>. I've showing images from that images folder which is inside the subfolder (like test123). After using htaccess images are not showing up. (before that there was no problem...even the image path & sizes are showing correctly when right clicking on it...but the image is not showing there.) So, this must be a problem with my htaccess file. following is my htaccess rule given: Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase /esolz3/ RewriteCond %{REQUEST_URI} ^/([^/]+)/(.+)$ RewriteRule ^.*$ index.php?artiste=%1 [L] Any one, any idea why this is happening so?? Thank you in anticipation.
When using mod rewrite you need to use absolute URLS for images and such that are outside your virtual directory structure. Otherwise the browser will try to load them relative to the URL that the browser shows.