【发布时间】:2013-01-21 22:35:47
【问题描述】:
我想隐藏 index.php 页面,只显示域。
.htaccess 可以做到这一点吗?
RewriteRule ^index\.php/?$ / [L,R=301,NC]
也试过了:
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.php HTTP/
RewriteRule ^index.php$ http://example.com/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
index.php 仍然显示
【问题讨论】:
标签: linux apache .htaccess redirect mod-fcgid