Hello! I am new in URL Mode Rewrite. I have rewritten URL in following way. Re-Direct from http://mysite.com/site/books/1997/1997.php?token=a To http://mysite.com/site/books/1997/1997/token/a/ Here is the RULE in .htaccess ^books/1997/1997/token/([^/]+)/$ books/1997/1997.php?token=$1 [L] It works fine. But problem is that now images are not being shown in my page My images files (jpg, gif, png) are stored in http://mysite.com/site/images/my.jpg I can still access and show images in my page, but for this I need to use ../../../../../images/my.jpg Is there any way to show images in my page at old location (that is ../../images.jpg) using .htaccess file? Any help would be highly appreciated.
Here it is. Options +FollowSymLinks RewriteEngine on # http://mysite.com/site/images/ rewriterule ^books/1997/1997/token/([a-z]+)/([^/]+)$ images/$1 [L] # http://mysite.com/site/books/1997/1997.php?token=a RewriteRule ^books/1997/1997/token/([^/]+)/$ books/1997/1997.php?token=$1 [L] # http://mysite.com/site/images/ rewriterule ^books/1997/1997/token/([a-z]+)/start/([0-9]+)/p_f/([0-9]+)/([^/]+)$ images/$1 [L] # http://mysite.com/site/books/1997/1997.php?token=a&start=5&p_f=0 RewriteRule ^books/1997/1997/token/([^/]+)/start/([^/]+)/p_f/([^/]+)/$ books/1997/1997.php?token=$1&start=$2&p_f=$3 [L] RewriteRule ^([^/]+).htm$ $1.php Please tell what mistake I am doing?
Hello, Please check the link location of each images and paste here one image link which has already broken