.htaccess中包含以下内容:
Redirect 301 /index.jsp http://www.foo.com/
Options FollowSymLinks
RewriteEngine On
RewriteBase /
#redirect non-www to www
RewriteCond %{HTTP_HOST} ^foo.com [NC]
RewriteRule ^(.*)$ http://www.foo.com/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^.*\.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ %{REQUEST_FILENAME}.html
当我访问http://foo.com/index.jsp时,获得以下重定向链:
301 http://foo.com/index.jsp 216.22.00.000 server_redirect permanent http://www.foo.com/index.jsp
301 http://www.foo.com/index.jsp 216.22.00.000 server_redirect permanent http://www.foo.com/
200 http://www.foo.com/ 216.22.00.000 normal none none
我在这里做什么错了?