请教一个 Nginx Rewrite 规则的写法
昨天折腾了一天,终于将LNMP成功安装,由于是第一次使用VPS及LNMP,学到了很多新知识,感谢军哥~现在有一个小白问题还没弄明白,就是下面的Apache重写规则,Nginx下应该怎么写呢?
Redirect 301 /feed.phphttp://www.xxx.com/feed/
Redirect 301 /read.php/410.htmhttp://www.xxx.com/xxx/
多多指教:(:(
[ 本帖最后由 yyt_sjq 于 2010-9-23 12:03 编辑 ]
回复 1# 的帖子
看一下 http://blog.licess.cn/nginx_rewrite/和http://blog.licess.cn/nginx_rewrite/
回复 2# 的帖子
多谢,已经搞定 :$rewrite "/feed.php" "http://www.portablesoft.cn/feed/" permanent;
rewrite "/read.php/300.htm" "http://www.portablesoft.cn/flash-slideshow-builder/" permanent;
页:
[1]