You can create custom redirect using following functionality:
http://docs.magento.com/m1/ee/user_guide/search_seo/seo-url-redirect-custom.html
If you don't want to make redirection: in that case you'll have to implement custom router, which is not something you can do by changing configuration. You'll have to implement it, and here is proof of concept how it can be done:
https://magento.stackexchange.com/questions/107914/magento-custom-router
If this response was helpful to you, consider giving kudos to this post.
If this response solved your problem, click accept as solution to help others solve this issue