Home > Backend Development > PHP Tutorial > Rewrite Url求教!解决办法

Rewrite Url求教!解决办法

WBOY
Release: 2016-06-13 10:16:13
Original
711 people have browsed it

Rewrite Url求教!
请问下如何写
/models.php?brand=apple实现/apple-notebook-c.html或者类似的静态URL的规则。在此谢过了

------解决方案--------------------
RewriteEngine on
 
RewriteRule (.*)-notebook-c.html models.php?brand=$1 [L]


ro-----------------------------

RewriteEngine on 
RewriteRule ^(.*)-notebook-c.html models.php?brand=$1 [L]

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