HTML Redirect Code


To redirect a web page to another:

Put the following code between the <HEAD> and </HEAD> tags of the page that you want to redirect from.

<meta HTTP-EQUIV=”REFRESH” content=”0; url=https://www.abcdiamond.com/html-codes”>

The content=”0; part allows for the page to show for a number of seconds before it redirects. 0 = zero seconds, 5 would mean 5 seconds.

Nothing needs to be added to the target page.

Another option for PHP pages is:

Nothing needs to be added to the target page.

Another option for PHP pages is:

<?php
header (‘Location: https://www.abcdiamond.com/html-codes’);
?>



86.1 - 811,758
Scroll down for Comments
0 0 votes
Article Rating
Subscribe
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x