提问人:user1968854 提问时间:11/7/2023 更新时间:11/7/2023 访问量:33
htaccess重写规则中的简单正则表达式替换
Simple Regex replace in a htaccess rewrite rule
问:
我有一个 URL,我需要删除 ?从 HTCacess 文件中。 改变: /index.php?option=com_content&view=article&id=28&Itemid=296&?item=1586257532 自: /index.php?option=com_content&view=article&id=28&Itemid=296&item=1586257532
我根据众多的谷歌搜索尝试了许多变体。 最后一个是: 重写规则 ^(.*)&?$ $1& [R=301, L]
有人能告诉我这是怎么做到的吗?
答: 暂无答案
评论
&