由网友(遗忘你的爱)分享简介:我怎么能改写如下:http://www.mydomain.com/my-page.html 以 http://www.mydomain.com/my-page.html?type=1 试过了,没有任何运气如下:重写规则/car-covers.html$ /car-covers.html?type=$1 [R = 30...![Apache大师中,Rewrite 伪静态 设置示例](https://p.xsw88.cn/allimgs/daicuo/20230902/187.png)
我怎么能改写如下:
http://www.mydomain.com/my-page.html 以 http://www.mydomain.com/my-page.html?type=1
试过了,没有任何运气如下:
重写规则/car-covers.html$ /car-covers.html?type=$1 [R = 301,L]
重写规则^汽车covers.html $汽车covers.html?型= $ 1 [QSA,L]
解决方案
重写规则^ html页面/([^/.]+)?$的index.php行动= search_refine&放?;类型= $ 1 [L]
![Apache大师中,Rewrite 伪静态 设置示例](https://p.xsw88.cn/allimgs/daicuo/20230902/187.png)
How can I rewrite the following:
http://www.mydomain.com/my-page.html to http://www.mydomain.com/my-page.html?type=1
Tried the following without any luck:
RewriteRule /car-covers.html$ /car-covers.html?type=$1 [R=301,L]
RewriteRule ^car-covers.html$ car-covers.html?type=$1 [QSA,L]
解决方案
RewriteRule ^html page/([^/.]+)?$ index.php?action=search_refine&type=$1 [L]
相关推荐
最新文章