RewriteUrl求教!解决办法
时间:2021-07-01 10:21:17
帮助过:32人阅读
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]