在我的网站上,我编辑了整个 htaccess以制作用户友好的网址。但是在给出.htaccess文件后,该网站的样式没有采取。所以我修改了网站的所有链接,例如 http://www.sitename/foldername/filename 。
我的ajax代码是:
if(this.id=="cl_onmem"){
var ccat2='<?php echo $cc2; ?>';
$(".right_displayBx").html( ajax_csrh("cfilter1.php","omid=live&ccat2="+ccat2);
}
我的htaccess代码是:
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]
但之后, ajax页面和其他页面在页面上重复,在单个窗口中显示多个页面 ..
所以我在页面顶部给了 ...
但是之后我网站上的ajax页面无法正常工作..直接重定向到索引......
任何人请帮帮我......
提前致谢...