-4

我如何更改 .htaccess 文件?

http://www.mydomain.com/index.htm 全部重定向到: http ://www.mydomain.com/

4

1 回答 1

0
Options +FollowSymLinks
DirectoryIndex index.php 
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} /index.php
RewriteRule ^index.php$ http://www.mydomain.com/ [R=301,L]
于 2013-05-03T11:15:23.030 回答