新建一个.htaccesse文件在根目录下,内容如下,但是访问不成功,大家帮我看下是什么原因?感谢
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?blog.yongningo.com$
RewriteCond %{REQUEST_URI} !^/us/
# 不要改以下两行.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /us/$1
# 目录名/ 后面是首页文件index.php, index.html……
RewriteCond %{HTTP_HOST} ^(www.)?blog.yongningo.com$
RewriteRule ^(/)?$ us/index.html [L]
我的本意是访问us下面的index.html文件,但是老是访问主域名文件,感谢各位。。。。