Joomla站点中的.htaccess重定向错误



我有一个长时间运行良好的 Joomla 网站突然停止工作,就像它只显示索引一样.html页面它没有重定向到我的 htaccess 发布在下面的其他一些页面。

##### RewriteEngine enabled - BEGIN
RewriteEngine On
##### RewriteEngine enabled - END
## Send ETag (selected method: )
##### Rewrite rules to block out some common exploits -- BEGIN
RewriteCond %{QUERY_STRING} proc/self/environ [OR]
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
RewriteCond %{QUERY_STRING} base64_(en|de)code(.*) [OR]
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]
##### Rewrite rules to block out some common exploits -- END
##### Advanced server protection rules exceptions -- BEGIN
##### Advanced server protection rules exceptions -- END
##### Advanced server protection -- BEGIN
##### Advanced server protection -- END
##### Joomla! core SEF Section -- BEGIN
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
##### Joomla! core SEF Section -- END

正如某些来源所建议的那样,我已经为文件和文件夹授予了 755 和 644 的权限,但我在我的实时应用程序中仍然有这个问题,任何建议将不胜感激。

需要加载index.php才能运行。

如果正在加载index.html,这可能与您的托管配置有关。

如果您不希望加载index.html文件,可以重命名该文件,也可以向.htaccess文件添加指令,如下所示:

DirectoryIndex index.php index.html

然后index.php将优先加载index.html

最新更新