New answers tagged

0

In order to match against the query string part of the URL you need to use mod_rewrite with a condition (RewriteCond directive) that specifically checks the query string. Other directives only check against the URL-path (which naturally excludes the query string). So, from your example, to redirect from /fr/opportunites/?sector_cat=<value>&...


0

nginx stores individual query arguments to variables with $arg_ prefix. In this case, you can use the following pattern: location ~ ^/manager/?$ { return 302 /manager/cart/a/$arg_a/pid/$arg_pid/currency/$arg_currency/billingcycle/$arg_billingcycle; } However, if you need to limit actions based on value of whmpca argument, then additional restrictions ...


0

if ( $args ~ "whmpca=order_process&a=add&pid=(\d)&a=add&currency=(\d)&billingcycle=monthly" ) { set $pid $1; set $cur $2; } rewrite /manager/cart/a/add/pid/$pid/currency/$cur/billingcycle/monthly/ redirect;


0

The SNI was sending the requests to the Live-Server instead of the test-server. And the Live-Server has rewrite-rules.


0

You should check WordPress Site URL setting. WordPress sends back a 301 redirect to the site URL if the site URL does not match current virtual host hostname.


Top 50 recent answers are included