【问题标题】:Remove these characters at the end of the url using .htaccess使用 .htaccess 删除 url 末尾的这些字符
【发布时间】:2015-12-17 06:53:44
【问题描述】:
http://www.example.com/marketplace/seller/profile/swamytiles?___

这是网址。我想使用 .htaccess url rewrite 删除上述 url 中的那些 ?___ 字符。

我试过这个Removing a trailing character at the end of a URL using htaccess。但这对我没有帮助。请有人指导我。

【问题讨论】:

    标签: apache .htaccess mod-rewrite url-rewriting


    【解决方案1】:

    试试:

    RewriteEngine On
    
    RewriteCond %{THE_REQUEST} /([^?]+)\?___ [NC]
    RewriteRule ^ /%1? [NC,L,R]
    

    【讨论】:

    • 请任何人推荐一个学习如何编写重写规则的最佳指南。谢谢。
    猜你喜欢
    • 2015-02-10
    • 2012-12-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-11
    • 2014-08-07
    • 1970-01-01
    相关资源
    最近更新 更多