Redirect permanently 301 response

HTTP::redirect replaces the current response with a redirect to the specified URL and sends an HTTP 302 (Temporary Redirect) status code.

HTTP::redirect “https://itadminguide.com”

If you want to send a different code such as 301 (Permanent Redirect) you may invoke HTTP::respond with a suitable status code and Location header, for example:

HTTP::respond 301 Location “https://itadminguide.com”