产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请 担保单 免费安全、零费率交易平台编程助手免费智能写代码、翻译AMYSQL 免费MySQL管理工具

AMH 社区首页

 AMH社区 - 开放自由有价值的社区

[求助帖] 301永久重定向老是不成功,谁帮忙看看

1100043
铁牌会员
53.00 价值分

1100043 发表于 2014-02-22 20:34:58
location / {
rewrite ^/search.asp?searchword=(.*)$ /vod-search-wd-$1-p-1.html permanent;
rewrite ^/list/?(.*).html$ /vod-show-id-$1-p-1.html permanent; #前面两句是301跳转,后面是伪静态规则
rewrite ^/vod-(.*)$ /index.php?s=/Home-vod-$1 last;
rewrite ^/content/detail_(.*)$ /index.php?s=/Home-vod-read-id-$1 last;
rewrite ^/player/play_(.*)-(.*)-(.*)$ /index.php?s=/Home-vod-play-id-$1-sid-$2-pid-$3 last;
rewrite ^/special-(.*)$ /index.php?s=/Home-special-$1 last;
rewrite ^/gb-(.*)$ /index.php?s=/Home-gb-show-$1 last;
rewrite ^/site/(.*)$ /index.php?s=/Home-my-show-id-$1 last;
rewrite ^/news-(.*)$ /index.php?s=/Home-news-$1 last;
rewrite ^/tag-(.*)$ /index.php?s=/Home-tag-$1 last;
rewrite ^/cm-(.*)$ /index.php?s=/Home-cm-$1 last;
rewrite ^/map-(.*)$ /index.php?s=/Home-map-$1 last;
rewrite ^/tpl/(.*)/home/(.*).html$ /index.php last;
rewrite ^/plus/(.*).php$ /index.php last;
rewrite ^/Column/list_(.*)-(.*)$ /index.php?s=/Home-vod-show-id-$1-p-$2 last;
rewrite ^/Content/detail_(.*)$ /index.php?s=/Home-vod-read-id-$1 last;
rewrite ^/Player/play_(.*)-(.*)-(.*)$ /index.php?s=/Home-vod-play-id-$1-sid-$2-pid-$3 last;
}
评价: 这个问题有价值吗?  没有 (0分)   有, 感谢 (0分)
2014-02-22 20:34:58 1

1100043
铁牌会员
53.00 价值分

无法实现跳转,全是404
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-02-22 20:35:34 2

vica
铁牌会员
183.00 价值分

支持发个url看看?
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-02-27 11:28:29 3

Kvm
银牌会员
3872.65 价值分

支持 支持
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2014-02-27 15:18:56 4
 1  (总1页)
AMH社区列表
用户服务中心