草根站长论坛's Archiver

『尐澔掛機』 发表于 2007-12-19 00:22

请问.htaccess中怎样做301重定向呢?

我想把我的首页[url=http://www.shdog.net和shdog.net/]www.shdog.net和shdog.net[/url]都重定向到[url=http://www.shdog.net/blog]http://www.shdog.net/blog[/url]
H!g#aIYBW6o F| ] 怎么写呢?我的.htaccess文件内容如下
*Yf#deCJ7Nw)bL 万分感谢
O!fY6ko(d+| RewriteEngine on
M `L~7L&Um/d RewriteBase /b*N0L'd2?D^E,v
RewriteRule ^archiver/((fid|tid)-[0-9]+\.html)$ archiver/index.php?$1
;Q&QB*q,}m RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2$^(tz8_T:o9?
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2)^l.i7P,^9HI[
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2c3E,tWs
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1

xihe02 发表于 2007-12-19 00:37

不知道
IoKl4uP 看了头疼啊

页: [1]

Powered by 草根站长网 © 2007-2008