How do I rewrite in .htaccess a call to this URL:
www.domain.com/?_wpm_gateway=paypal-standard&_wpm_action=ipn
To point to a new IPN URL (for Paypal payments):
www.domain.com/payments/paypal/ipn
With, obviously, the rest of the parameters in the IPN itself being passed on and sent over to the new URL?
Any idea?
And I need a rewrite rule ONLY if that query/URL is called, as otherwise it should be business as normal, so to speak.
EDIT: I tried this, but didn't work... ideas?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} (?:^|&)_wpm_action=ipn(?:$|&)
RewriteRule ^ /payments/paypal/ipn? [NS,L,DPI,QSD]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>