Used Plesk version: Plesk Obsidian 18.0.78 Update #3
One of our websites has recently been relocated to another domain, and the old domain has been added as a domain alias. The alias redirects requests to it with a 301 response, as specified by the "Redirect with the HTTP 301 code" option. However, this causes a huge problem: Many API requests still come to the old URL, and if a POST request or any other non-GET requests arrive, the 301 redirect turns them into GET requests. Currently, i manually edit the file at
One of our websites has recently been relocated to another domain, and the old domain has been added as a domain alias. The alias redirects requests to it with a 301 response, as specified by the "Redirect with the HTTP 301 code" option. However, this causes a huge problem: Many API requests still come to the old URL, and if a POST request or any other non-GET requests arrive, the 301 redirect turns them into GET requests. Currently, i manually edit the file at
/etc/nginx/plesk.conf.d/vhosts/domain_name.conf to replace all the "return 301" with "return 308", but this file is regenerated when any system updates occur. Could a new "Redirect non-GET requests with HTTP 308 code" option be added to domain aliases?