.htaccess 伪静态规则写法写法 如http:⼀⼀localhost⼀news⼀bencandy.php?&fid=86&id=6832

2024-11-22 14:57:41
推荐回答(1个)
回答(1):

你想简单到什么样子呢?
下面这样行不?

RewriteBase /
Rewrite ^(\w+)_(\d+)_(\d+)\.html$ /news/$1.php?fie=$2&id=$3 [L]

然后访问地址就成了
http://localhost/news/bencandy_86_6832.html