dongle2627 2015-08-11 12:14
浏览 71

在页面上给出<base href =“/”>后,AJAX页面未加载

In my website, I edited the whole htaccess for making user-friendly url. But after giving the .htaccess file, style for the site is not taking. So I modified all my link of the site like, http://www.sitename/foldername/filename.

my ajax code is:

if(this.id=="cl_onmem"){
            var ccat2='<?php echo $cc2; ?>';
                $(".right_displayBx").html( ajax_csrh("cfilter1.php","omid=live&ccat2="+ccat2); 
            }

my htaccess code is:

Options +FollowSymLinks -MultiViews
    RewriteEngine On
     RewriteBase /Classifieds/

    RewriteCond %{THE_REQUEST} ^GET\s([^.]+)\.php\s [NC]
    RewriteRule ^ %1 [R,L]
    RewriteCond %{THE_REQUEST} ^GET\s([^.]+)\.php\?id=([^&\s]+)\&title=([^&\s]+) [NC]
    RewriteRule ^ %1/%2/%3? [R,L]
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME}\.php -f 
    RewriteRule ^(.+?)/([^/]+)/?$ $1.php?id=$2&title=$3[QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}.php -f
    RewriteCond %{QUERY_STRING} ^$
    RewriteRule ^(.*?)/?$ $1.php [L]

But after that, the ajax pages and other pages are repeating on the page and showing multiple pages on a single window..

So I gave on the top of the page...

But after that ajax pages on my site are not working..it directly redirecting to the Index...

Anybody Please help me..

Thanks in advance...

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
    • ¥20 cad图纸,chx-3六轴码垛机器人
    • ¥15 移动摄像头专网需要解vlan
    • ¥20 access多表提取相同字段数据并合并
    • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
    • ¥20 Java-Oj-桌布的计算
    • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
    • ¥20 有人知道这种图怎么画吗?
    • ¥15 pyqt6如何引用qrc文件加载里面的的资源
    • ¥15 安卓JNI项目使用lua上的问题