【发布时间】:2018-02-08 02:06:41
【问题描述】:
就像标题一样,我对此重写规则有疑问 我写这个
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(font|css|js|images|remote) [NC]
RewriteCond %{REQUEST_URI} !^/(font|css|js|images|remote/.*)$ [NC]
RewriteRule ^index$ /page/index [QSA,L]
RewriteRule ^(.*)/(.*)$ /page/article&category=$1&post=$2 [QSA,L]
当我从 /remote/check-function.php 从页面调用 ajax 远程时,他会加载完整的 /page/post 以及 ajax 发送的变量。
我该如何解决这个问题
提前致谢。 最好的。
【问题讨论】:
标签: php ajax .htaccess mod-rewrite