Prevent WordPress from automatically correcting URLs
This happens in redirect_canonical(). You can disable that function with: remove_action(‘template_redirect’, ‘redirect_canonical’); But be aware it does a lot more. Too much for my taste … So there might be side effects.