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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
    • ¥15 gdf格式的脑电数据如何处理matlab
    • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
    • ¥100 监控抖音用户作品更新可以微信公众号提醒
    • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
    • ¥70 2048小游戏毕设项目
    • ¥20 mysql架构,按照姓名分表
    • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
    • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
    • ¥15 linux驱动,linux应用,多线程