0
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!

Saclt7
  • 377
  • 1
  • 8
  • 32
  • Possible duplicate of [.htaccess rewrite to redirect root URL to subdirectory](https://stackoverflow.com/questions/990392/htaccess-rewrite-to-redirect-root-url-to-subdirectory) – kallosz Jul 30 '18 at 11:34

1 Answers1

0

Maybe you can try with

url:"/ajax/la.php"

if I've understood correct.

AnTrakS
  • 733
  • 4
  • 18