insist 发表于 2011-2-18 23:07:10

nginx 301 定向不成功,什么问题

      rewrite ^/file/file.php$ http://www.otherdomain.com/otherfile/other.php permanent;
      break;

licess 发表于 2011-2-19 09:42:11

回复 1# 的帖子

https://bbs.vpser.net/viewthread.php?tid=2117

insist 发表于 2011-2-19 13:41:02

我在 .htaccess 添加的 Rewrite(伪静态规则)
rewrite ^/(.*)_c(+) /index.php?main_page=index&cPath=$2 last;
rewrite ^/(.*)_p(.*).html /index.php?main_page=product_info&products_id=$2 last;

这些有作用。

但是下面的301定向就不对
rewrite ^/wholesale-air-jordan-1341-p-4103(.*)$ http://www.goods88.com/cheap-jordans-shoes-1341_p6511.html permanent;
只能定向wholesale-air-jordan-1341-p-4103
不能定向wholesale-air-jordan-1341-p-4103.html
页: [1]
查看完整版本: nginx 301 定向不成功,什么问题