Virtual model Nginx 301amp 302 redirect question ask!

I would like to ask all the bosses, that is, I have just started to operate the website. But there is a question that bothers me, such as the following example:
http://abc.com/login.html?ref.
how to redirect to http://abc.com/login.html?
Thank you for your attention.
Tip: the virtual machine forbids the use of server instructions

Apr.01,2021

give up basically if you don't want to use the Server command. At most, add js script to login.html to achieve client judgment and jump, as for 301Universe 302 can not be achieved.

<script>
if(/\?refer=/ig.test(window.location.href)) {
    window.location.href = window.location.origin + window.location.pathname;
}
</script>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bed85e-31b89.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bed85e-31b89.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?