我想隐藏 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 仍然显示