htaccess从使用redirectmatch剥离查询字符串

时间:2018-07-30 10:28:24

标签: .htaccess mod-rewrite

我正尝试使用如下所示的redirectmatch 301来应用重定向规则

using System; using Gtk; using Kassa; public partial class MainWindow : Gtk.Window { VBox left, right; public MainWindow() : base(Gtk.WindowType.Toplevel) { Build(); this.Title = "Kassa"; this.SetSizeRequest(1920, 1080); //this.Fullscreen(); left = new VBox(); left.HeightRequest = this.HeightRequest; right = new VBox(true, 0); right.HeightRequest = this.HeightRequest; right.WidthRequest = 64 * 4; Button button = new Button("b"); right.Add(button); right.PackStart(button, true, false, 0); button.Show(); this.Add(left); this.Add(right); right.Show(); this.ShowAll(); } protected void OnDeleteEvent(object sender, DeleteEventArgs a) { Application.Quit(); a.RetVal = true; } }

它确实起作用。但是,附加的查询字符串(如下面的示例)不会被剥离。

http://mev-hongkong.com/product-category/babies-tots/?add_to_wishlist=8836

如何剥离?add_to_wishlist = 8836参数,仅将其重定向到https://mothersenvogue.com.hk/shop/all-babies-tots/

0 个答案:

没有答案