Configuration guides for IT Administrators

Redirect permanently 301 response

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”

Leave a Reply

Your email address will not be published. Required fields are marked *

Lucas Brey

I’m Lucas Brey, a travel blogger sharing practical guides, hidden gems, and honest tips from the road. Follow along for smart itineraries, great food finds, and stories worth bookmarking.

Tags