Htaccess Redirect will lead to wrong port

I added some very simple redirect in the .htaccess in localwp:

Redirect 301 /test.xml /wp-json/custom/v1/test-xml

but it always redirects to

It must not change the port, why this is happening, please?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.