Deepak Sharma
Deepak Sharma

Reputation: 11

Want to Redirect My HTML page to Homepage of Website

I have Created a HTML page for my wordpress website homepage and now i want to redirect that HTML page to my website homepage. The page is already uploaded to my wordpress folder root directory

Upvotes: 0

Views: 151

Answers (3)

cbz6109
cbz6109

Reputation: 1

Add below code to your html page meta tag to redirect to your website

    <head>
       <meta http-equiv = "refresh" content = "1; url = https://www.yoursite.com" />
</head>

Upvotes: 0

Shreejal Maharjan
Shreejal Maharjan

Reputation: 1

Just use meta refresh attribute to redirect to a different site.

(content="0; will do an immediate redirect.)

<meta http-equiv="refresh" content="0;url=http://example.com/" />

Upvotes: 0

Burhan Kashour
Burhan Kashour

Reputation: 677

If you plan to redirect from new.html page to wordpress index.php file:

Redirect using PHP:

header('Location: http://www.example.com/');

Redirect using HTML Meta:

<meta http-equiv = "refresh" content = "2; url = https://www.example.com" />

Redirect using Javascript:

window.location.href = "http://www.example.com";
window.location.replace("http://www.example.com");

Upvotes: 1

Related Questions