Maison >développement back-end >tutoriel php >Rewrite Url求教!解决办法
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]