I am working on Magento 2 URL Rewrites. All working well expect one. In my old website have
AccountSettings.asp?modwhat=change_b this URL and I am trying to rewrite this, but it doesn't working for me.
Any help on this?
This behavior is expected when reading Magento code. Magento rewrites are intended to be used to rewrite the request path and keep the query params (after the ? symbol) untouched.
You have two options :
Manage this by using the rewrite rules of the webserver
In the code by using a router
My favorite option would be to use rewrite rules. In the end, you should not not mix Magento and webserver rewrite rules.In your case I would advice to use only webserver rewrite rules.