Hi there! I have a problem with the mod_rewrite that I can't solve, so I'm asking for help.
I want to make the dinamic urls:
To look something like this:
Here is the .htaccess that comes with the script it might help.
Thanks in advance!
I want to make the dinamic urls:
Code:
http://domain.com/showcat.php?cat=3D&page=2
http://domain.com/showcat.php?cat=3D&subcat=Main&page=2
To look something like this:
Code:
http://domain/cat/subcat/page/2/
http://domain/cat/page/2/
Here is the .htaccess that comes with the script it might help.
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^top/page/(.*)/$ http://domain.com/top.php?page=$1 [L]
RewriteRule ^latest/page/(.*)/$ http://domain.com/latest.php?page=$1 [L]
RewriteRule ^(.*)/(.*)/(.*).html$ http://domain.com/show.php?cat=$1&sub_cat=$2&img=$3 [L]
RewriteRule ^(.*)/(.*)/$ http://domain.com/showcat.php?cat=$1&subcat=$2 [L]
RewriteRule ^(.*)/$ http://domain.com/showcat.php?cat=$1 [L]
RewriteRule ^most-rated.html$ http://domain.com/showmost.php?type=1 [L]
RewriteRule ^most-clicked.html$ http://domain.com/showmost.php?type=2 [L]
RewriteRule ^most-downloaded.html$ http://domain.com/showmost.php?type=3 [L]
RewriteRule ^most-Searched.html$ http://domain.com/showmost.php?type=4 [L]
Thanks in advance!