原 http://www.baite66.com/index.php/module/action/param1/statics/icons/statics/images/goods/20121006/gallery--n,%E6%A3%89%E8%A2%9C-index.html
做一个 301 指定到:www.baite66.com我是这样写的,但是不行。
RewriteCond %{HTTP_HOST} ^www.baite66.com$
RewriteRule ^index.php/module/action/param1/statics/icons/statics/images/goods/20121006/gallery--n,([a-z]+)-index.html$ http://www.baite66.com/index.php [R=301,L]

解决方案 »

  1.   

    我下邊的代碼會把所有來自pcik.7di.net的訪問方式都301指向到 http://7.7di.net/
    RewriteEngine on
    #301永久重定向
    Options +FollowSymLinks
    RewriteCond %{HTTP_HOST} ^pcik.7di.net
    RewriteRule ^(.*)$ http://7.7di.net/$1 [R=permanent,L]
      

  2.   

    试试这样写行不行
    RewriteEngine on #rewriteengine为重写引擎开关on为开启off为关闭
    RewriteBase /
    RewriteRule ^index.php$ index.php/module/action/param1/statics/icons/statics/images/goods/20121006/gallery--n,%E6%A3%89%E8%A2%9C-index.html