I got a bit further: location / { if ( $args ~* "s2member_paypal_notify" ) { set $args "optimizemember_paypal_notify"; rewrite ^.*$ https://www.domain.org/ permanent; } try_files $uri $uri/ /index.php?$args; } This is working now for the IPN - however I noticed that if I enter e.g. www.domain.org/?s2member_paypal_notify=1 the redirectby extremecarver - Migration from Other Servers
I've also tried: rewrite ^/?s2member_paypal_notify(.*)$ /?s2member_paypal_notify/?optimizemember_paypal_notify$1 last; but that doesn't work either...by extremecarver - Migration from Other Servers
Hi I would really need to have a rewrite to get paypal IPN calls at a different location - but I seem to be too stupid to write the correct rule: Old URL www.velomap.org/?s2member_paypal_notify=1; New URL www.velomap.org/?optimizemember_paypal_notify=1; I tried the code below - but it's not rewriting/forwarding the IPN correctly. Would be really glad for some help here. location / { reby extremecarver - Migration from Other Servers
okay - I noticed my homepage wouldn't load for www.velomap.org/de/ anymore with this rule - location = /de/ { if ( $arg_s2member_paypal_notify ) { rewrite ^ / permanent; } try_files $uri $uri/ /index.php; } Seems to work - well I hope this is passing on all information correctly still..by extremecarver - Nginx Mailing List - English
Will this work correctly with all the arguments followed? location = /de/ { if ( $arg_s2member_paypal_notify ) { rewrite ^ / permanent; } }by extremecarver - Nginx Mailing List - English
Hi - I've got a plugin which was misconfigured - and now I need to rewrite a string - however I cannot find out at all how to do this for urls with ? in them. So I need to have: www.velomap.org/de/?s2member_paypal_notify=1 rewritten to www.velomap.org/?s2member_paypal_notify=1 (note the /de missing). I tried: server { server_name www.velomap.org/de/?s2member_paypal_notify=1 return 30by extremecarver - Nginx Mailing List - English