致电www.domain.com/.html获取403

时间:2014-06-25 21:38:02

标签: html .htaccess http-status-code-403

我试图优化我的网站,每当我打电话给这个" http://www.domain.com/.html"时,我得到403 - 被禁止。这是我的htaccess

AddDefaultCharset UTF-8

# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond ${REQUEST_URI} ^.+$
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|js|css|swf|php|ico|txt|pdf|xml)$ [OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -l
RewriteRule ^ - [L]

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

如果有人刚进入&#34; .html&#34;是否有重定向?没有其他任何错误页面?我已经尝试删除隐藏文件部分,看看是否存在问题,但这对任何人都没有帮助。

# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>

有人有什么建议吗?谢谢。

0 个答案:

没有答案