VPS侦探论坛

 找回密码
 注册
查看: 5185|回复: 1

谁给写一下LNMP下的伪静态

[复制链接]
发表于 2011-11-5 19:36:07 | 显示全部楼层 |阅读模式

这是APACHE下的,
RewriteRule ^show\/([0-9]+_*[0-9]*)\.html$ art.php\?id=$1
RewriteRule ^relate\/([0-9]+)\.html$ like.php\?id=$1
RewriteRule ^topic\/([0-9]+)\.html$ topic.php\?id=$1
RewriteRule ^single/([a-zA-Z]+_*[0-9]*).html$ single.php\?f=$1
RewriteRule ^([a-zA-Z]+_*[0-9]*)\.html$ type.php\?id=$1
RewriteRule ^topiclist\/([0-9]+_*[0-9]*)\.html$ topic_list.php\?id=$1

谁能帮转一下啊,我用在线转的工具转出来的不行,全是404
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-11-5 21:28:10 | 显示全部楼层


如下:加入虚拟主机域名规则下,
rewrite ^(.*)/show/([0-9]+_*[0-9]*)\.html$ art.php?id=$1
rewrite ^(.*)/relate/([0-9]+)\.html$ like.php?id=$1
rewrite ^(.*)/topic/([0-9]+)\.html$ topic.php?id=$1
rewrite ^(.*)/single/([a-zA-Z]+_*[0-9]*).html$ single.php?f=$1
rewrite ^(.*)/([a-zA-Z]+_*[0-9]*)\.html$ type.php?id=$1
rewrite ^(.*)/topiclist/([0-9]+_*[0-9]*)\.html$ topic_list.php?id=$1
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-11 07:26 , Processed in 0.025458 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表