我有一个URL,看起来像:
url.com/show.php ? id = abc
xxx url.com/show.php ? id =
如何将URL转换为
url.com/abc
url.com/xxx
如何在PHP中创建友好的url ?
我猜你希望在你的。htaccess文件中有如下内容
#Turn on the rewriting engine
RewriteEngine On
RewriteRule ^([A-Za-z0-9-]+)/?$ show.php?id=$1 [NC,L]