16 January 2008 04:30
![](http://blogmarks.net/screenshots/2008/01/16/64143865da38695db57c3ad36a4f056c.png)
SEO:进行301重定向
只需要在.htaccess文件里面写入下面的代码:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
就可以实现把把有的链接转向到www.domain.com
# 注意: htaccess文件需要放置在需要跳转的网站的根目录下。服务器必器支持Apace的Mod-rewrite
1
(1 marks)