Hi,
I'm trying to add search engine user friendly url.
I've urls like this
index.php?m=products
index.php?m=product&op=productDetails&id=27
So, i''ve added this code
Options +FollowSymlinks
# deny most common except .php
<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|themes|module|exe)$">
deny from all
</FilesMatch>
RewriteEngine On
RewriteRule ^index.html index.php
RewriteRule ^product/([1-9][0-9]*) index.php?m=product&op=productDetails&id=$1
RewriteRule ^product index.php?m=product
This works great. But i can't see the images. Because in template images,javascript and css path like this
themes/mytheme/header.gif. After adding .htaccess web page looks for http://mysite/product/themes/mytheme/header.gif instead of http://mysite/themes/mytheme/header.gif.
Only way to fix is add base tag in the header or have products.html instead of product
#base solution
<base href="http://mysite/" />
or change htaccess
RewriteRule ^product.html index.php?m=product
Is there any better solution
Regards