隐藏了index.php
现在我还需要做一个URL重写功能。
将http://localhost/goods.php?id... 定向或跳转http://localhost/goods/100
apache 重写如何实现,nginx 重写如何实现?
如图所写,不起作用
apache的
RewriteEngine on
RewriteRule /goods/([0-9]+) /goods.php?id=$1
nginx一样的
rewrite /goods/([0-9]+) /goods.php?id=$1;