weixin_33743880 2016-01-31 21:02 采纳率: 0%
浏览 17

Ajax和htaccess问题

i using htaccess for change url:

localhost/test/broker.php?id=1

change to

localhost/test/1 

htaccess code:

RewriteRule ^([0-9]+)   broker.php?id=$1    [QSA,L]

in my code also manually add page name to the url for exp

localhost/test/1/iphone

and still page load and working.

now my problem is using ajax in broker.php and if url to be without "iphone" word work correctly but with "iphone" word not working and without response

this is my ajax code:

$.ajax({
    type: "POST",
    url: 'yt.php',
    data: "broker_id=" + $("#broker_id").val() + "&uname=" + $("#uname").val() + "&email=" + $("#email").val() + "&country=" + $("#country").val() + "&rating=" + rating + "&review=" + $("#review").val(),

also i had a lot of changes in htaccess for broker.php and also for yt.php but my problem not solved!

please help me and tell what is wrong?

  • 写回答

0条回答 默认 最新

    报告相同问题?