Rewrite URL for Payment Gateway

I am working on a payment gateway that doesn’t allow “?” in Callback URLs. This payment gateway has to be integrated with WordPress + Woocommerce.

My callback URL seems to be


I want to use it in a different way so payment gateway doesn’t give an error. Here is an example:


and later, I want to rewrite it using htaccess when payment gateway sends back response to WordPress site so WordPress file can execute the response.

Apparently, only


part should be re-writable.

Any hints for htaccess rewrite condition?

Read more here: Rewrite URL for Payment Gateway

Leave a Reply

Your email address will not be published. Required fields are marked *