[thelist] Image not displaying using mod rewrite

rahaman rahaman29 at gmail.com
Sat Nov 4 03:33:34 CST 2006


hi ,
I have the problem of displaying images using mod rewrite . i want to
display the following link

http://www.domain.com/index/cat/subcat/1
instead
http://www.domain.com/index.php?cat...t=laptop&page=1<http://www.domain.com/index.php?cat=computer&subcat=laptop&page=1>

this using mod rewrite work fine by making changes in .htaccess the
following code
<Files index>
ForceType application/x-httpd-php
</Files>
RewriteEngine On
RewriteBase /shop/
RewriteRule ^index$ index.php [L]
RewriteRule ^index/([^/\.]+)?$ index.php?handle=$1 [L]
RewriteRule ^index/([^/\.]+)/([^/\.]+)$ index.php?cat=$1&subcat=$2 [L]
RewriteRule ^index/([^/\.]+)/([^/\.]+)/([^/\.]+)$
index.php?cat=$1&subcat=$2&pg=$3
[L]



but my problem is ,the image link r broken and images gone. if anybody can
help me, i will be grateful to you. thanks in advance. please help me by
modifying the htaccess code


my dir structure is

-/
  |--index

  |--images
    |--sa.jpg

Thanks Again



More information about the thelist mailing list