user598771
user598771

Reputation: 57

redirecting html page to another html

I have to redirect a website to another website, before it is shown. I have tried using .htaccess but it is giving me problems. I have also used javavscript and meta but it does not work before the loading of a page from which I want to transfer. help?

Upvotes: 4

Views: 14031

Answers (3)

Fayeza
Fayeza

Reputation: 1

Try this it will definitely work!!! This doesn't let your first page content to be displayed rather it will let the user go to the redirected page directly. Write this inside head tag after script type="text/javascript"

window.location="http://www.redirectedlocation.com";

Upvotes: 0

Sudhanshu Gupta
Sudhanshu Gupta

Reputation: 71

try this one

<meta http-equiv="refresh" content="N; URL=other-web-address">

where N is the approximate number of seconds that you want the current web page to be displayed before the browser automatically goes to the other web address. If N = 0, then the browser should go immediately to the other web address.

i hope this will solve your problem

Upvotes: 7

Nicolas
Nicolas

Reputation: 31

put this

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

in the html head tag (replace http://stackoverflow.com/ with the url u want).

Upvotes: 3

Related Questions