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

Rewrite Url求教!解决办法

WBOY
WBOYOriginal
2016-06-13 10:16:13704browse

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]

Statement:
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