我有一个关于在我的litespeed服务器中使用htaccess的问题。我尝试使用以下规则将http://domain.com重定向到http://www.domain.com:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule .* http://www.domain.com/ [L,R=301]
当我使用Xenu检查http://domain.com时,结果如下:
http://domain.com/   200 ok text/html 301 Moved Permanently
http://domain.com/%s  200 ok text/html 301 Moved Permanently
http://www.litespeedtech.com/ 200 ok text/html LiteSpeed Web Server
http://www.domain.com/         200 ok text/html redir 
我想知道我是否有错误的htaccess规则,或者这是因为litespeed中的bug?我到处都在找hours...Thanks



文章评论