SAM TEMPLATE to monitor 301 redirect

Looking to create a SAM TEMPLATE to monitor when a 301 redirect is not working when forwarding from a website.  Any help or advice would be greatly appreciated.   TIA

Parents
  • Use Javascript:

    window.location.replace('http://example.com');

    It’s better than using window.location.href = ‘http://example.com’;

    Using replace() is better because it does not keep the originating page in the session history, meaning the user won’t get stuck in a never-ending back-button fiasco.

    If you want to simulate someone clicking on a link, use window.location.href

    If you want to simulate an HTTP redirect, use window.location.replace

    You can use assign() and replace methods also to javascript redirect to other pages like the following:

    location.assign("">http://example.com");

    The difference between replace() method and assign() method(), is that replace() removes the URL of the current document from the document history, means it is not possible to use the “back” button to navigate back to the original document. So Use the assign() method if you want to load a new document, and want to give the option to navigate back to the original document.

Reply
  • Use Javascript:

    window.location.replace('http://example.com');

    It’s better than using window.location.href = ‘http://example.com’;

    Using replace() is better because it does not keep the originating page in the session history, meaning the user won’t get stuck in a never-ending back-button fiasco.

    If you want to simulate someone clicking on a link, use window.location.href

    If you want to simulate an HTTP redirect, use window.location.replace

    You can use assign() and replace methods also to javascript redirect to other pages like the following:

    location.assign("">http://example.com");

    The difference between replace() method and assign() method(), is that replace() removes the URL of the current document from the document history, means it is not possible to use the “back” button to navigate back to the original document. So Use the assign() method if you want to load a new document, and want to give the option to navigate back to the original document.

Children
No Data