【发布时间】:2014-04-14 19:52:07
【问题描述】:
我尝试使用 .htaccess 删除 url 的 index.php 部分,现在即使我删除了 .htaccess,ajax 内容也不再加载。这是 .htaccess 的样子:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
Chrome 给我的错误如下所示:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://jolinmasson.com/ajax/page:6?_=1397504793977
【问题讨论】:
-
之前 ajax 工作正常吗?
-
是的。甚至没有另一个 .htaccess…