Hi,
I have a problem with my website. When someone is placing order, after paying he is redirected to Error 404 (link is something like: ***https://mysite******.com/?p=39%2Forder-received%2F4295%2F&key=wc\_order\_vMepYmRAm2g1n****).* And I have no idea why it is like that. User should see Thank You site (I’ve been trying to redirect it to Thank You site, like in YT tutorials but it’s not working).
I tried to turn off every plugin except WooCommerce, but it didn’t work as well.
I tried to redirect to Thank You page using plugin which does it, but it didn’t work.
Please, help me because I must fix it asap.
Thank you <3

A lot of things can be causing this
You first need to go to wpconfig file and turn on debugging
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, false );
Also you have to go to WooCommerce pages to thanks you page or order received page and double checks to see if the page or deleted.
You can also try the permalink path or structure and make sure it is correct one and hit save, either way hit save again.
I just noticed that you have an issue with this being at the end, (%2F should be /). This might be a symptom of incorrect URL handling in the redirect process.
here u need 2 look at any custom functions or plugins that manipulate URLs and they are creating them with no issues and look at htacess rule to see the redirects are correct