phpcj 发表于 2011-11-5 19:36:07

谁给写一下LNMP下的伪静态

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

谁能帮转一下啊,我用在线转的工具转出来的不行,全是404

pchunan 发表于 2011-11-5 21:28:10

如下:加入虚拟主机域名规则下,
rewrite ^(.*)/show/(+_**)\.html$ art.php?id=$1
rewrite ^(.*)/relate/(+)\.html$ like.php?id=$1
rewrite ^(.*)/topic/(+)\.html$ topic.php?id=$1
rewrite ^(.*)/single/(+_**).html$ single.php?f=$1
rewrite ^(.*)/(+_**)\.html$ type.php?id=$1
rewrite ^(.*)/topiclist/(+_**)\.html$ topic_list.php?id=$1
页: [1]
查看完整版本: 谁给写一下LNMP下的伪静态