RedirectPermanent( RRS feed

  • Question

  • User2102072086 posted

    though I have read this from many places.

    but could not understand properly. can anyone explain it step by step by giving examples?

    Thursday, April 30, 2020 5:57 AM

All replies

  • User753101303 posted


    Try perhaps https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections which explains http redirection in details.

    Edit: you can also use F12 Network in your browser to see the http response returned by RedirectPermanent (you should see an http 301 status and the new location which is then used by the  browser to fetch this next page).

    Thursday, April 30, 2020 7:04 AM
  • User288213138 posted

    Hi rajemessage,

    but could not understand properly. can anyone explain it step by step by giving examples?

    The RedirectPermanent performs a permanent redirection from a requested URL to a specified URL.

    The RedirectPermanent is a status code in the header of the HTTP data stream returned by the server when the user or search engine sends a browsing request to the website server, indicating this Permanently transfer to another address.

    Usually, it has the following application circumstances:

    • You've moved your site to a new domain, and you want to make the transition as seamless as possible.
    • People access your site through several different URLs. If, for example, your home page can be reached in multiple ways - for instance, http://example.com/home, http://home.example.com, or http://www.example.com - it's a good idea to pick one of those URLs as your preferred destination, and use redirectpermanent to send traffic from the other URLs to your preferred URL.
    • You're merging two websites and want to make sure that links to outdated URLs are redirected to the correct pages.

    Hope this can help you.

    Best regards,


    Thursday, April 30, 2020 8:37 AM