RewriteRule ^cat/([^/]*)\.html$ /cat.php?p1=$1 [L]
RewriteRule ^cat/([^/]*)/([^/]*)\.html$ /cat.php?p1=$1&p2=$2 [L]
RewriteRule ^cat/([^/]*)/([^/]*)/([^/]*)\.html$ /cat.php?p1=$1&p2=$2&p3=$3 [L]
I have created this htaccess and it works fine.
But the next problem is in jquery ajax url parameters url:"ajax/la.php"
in cat.php. it should redirect from root folder not subfolder
go like this public_html/ajax/la.php...
Thanks!