在.htaccess文件中需要进行哪些更改?
问题描述:
我如何改变.htaccess文件?在.htaccess文件中需要进行哪些更改?
http://www.mydomain.com/index.htm 所有重定向到: http://www.mydomain.com/
答
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-03 11:12:37
此外 - **很少**肯定意味着**不止一个**。 – 2013-05-03 11:12:59