Sunday, 15 September 2013

ajax page navigation not working after htaccess rewrite

ajax page navigation not working after htaccess rewrite

i use .htaccess to rewrite my url from
/list.php?pat=free&mainCol=maincate&subCol=shoes
to
/maincate/shoes
after rewrite, the ajax next page button is not working anymore. it should
load list_pull.php from same folder as list.php
$.post("list_pull.php",{
pageCurrent:pageClick,
pullSubCol:$("#pullSubCol").val()});
and the htaccess is like this
RewriteRule ^([^/.]+)/([^/.]+)$ /list.php?pat=free&mainCol=$1&subCol=$2 [L]
i tried use full path http://www.mydomain.com/list_pull.php - not working
i tried creating a folder "maincate" and put listpull.php inside, still
not working.
dont know if my question is clear enough, been trying to figure it out for
2 days now, still no luck.
thanks in advance for help!!

No comments:

Post a Comment