Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

redirecting html page to another html

Tags:

html

redirect

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?

like image 733
user598771 Avatar asked Dec 29 '22 01:12

user598771


2 Answers

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

like image 164
Sudhanshu Gupta Avatar answered Jan 14 '23 04:01

Sudhanshu Gupta


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).

like image 30
Nicolas Avatar answered Jan 14 '23 03:01

Nicolas