旧URL
http://localhost/detail.php?read=hair-loss-reasons新建URL
http://localhost/hair-loss-reasons这是动态URL
我想动态改变所有网址中的所有网址,当我们在页面"detail.php?read=url“页面和查询字符串变量”读“应该被删除,网址直接出现在网站名称或在本地主机上,它应该直接在本地主机上的localhost/url以及在一些网站运行时在服务器上
谢谢
发布于 2016-12-17 16:23:30
在localhost的根目录中尝试如下所示。
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([\w-]+)$ detail.php?read=$1 [QSA,L]https://stackoverflow.com/questions/41196341
复制相似问题