Home > Backend Development > PHP Tutorial > 求一段httpd.ini规则

求一段httpd.ini规则

WBOY
Release: 2016-06-23 14:28:12
Original
737 people have browsed it

本帖最后由 kaixinmaitian 于 2014-02-12 15:07:02 编辑

我想实现:http://www.xxx.com/十年站长生成器-1123.html 这种形式的的URL


使用下面这个规则,但是无效,不知错在什么地方
RewriteRule ^(.*)-(\d+)\.html newshow\.php?name=$1&id=$2

回复讨论(解决方案)

RewriteRule ^(.*)\-(\d+)\.html newshow.php?name=$1&id=$2

楼上的代码,试了还是不行呀。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template