[英].htaccess redirection error in Joomla site
I have Joomla site which was working fine for a long time suddenly stopped working like it was showing only index.html page it is not redirecting to some other pages my htaccess is posted below.我有 Joomla 网站,它运行良好很长时间突然停止工作,就像它只显示 index.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
as suggested in some sources i have given permissions as 755 and 644 for files and folders, still i have this problem in my live application any suggestions will be really appreciated.正如某些来源所建议的那样,我已为文件和文件夹授予 755 和 644 的权限,但我的实时应用程序中仍然存在此问题,任何建议将不胜感激。
index.php
needs to be loaded for Joomla to operate. Joomla 需要加载
index.php
才能运行。
If index.html
is being loaded instead this may have more to do with your hosting configuration.如果正在加载
index.html
这可能与您的托管配置有关。
You can rename the index.html
file if you don't want that to load or you could add a directive to your .htaccess
file as follows:如果您不想加载
index.html
文件,您可以重命名该文件,或者您可以向.htaccess
文件添加一个指令,如下所示:
DirectoryIndex index.php index.html
index.php
will then be loaded in preference to index.html
.然后
index.php
将优先于index.html
加载。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.