redirect html code

I am having trouble with redirecting a user to another page.
My code is as follows:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Redirecting</title>
<meta http-equiv="REFRESH" content="0;url=http://www.o-dating.co.uk"></HEAD>
<BODY>
Redirecting to <a href="http://www.o-dating.co.uk">www.o-dating.co.uk</a>
</BODY>
</HTML>

What am i doing wrong?
thanks
 

zkiller

Super Moderator
Staff member
try changing the 0 to a 1. no clue why it's not working, the code looks fine. just thought that maybe a it's having problems with refreshing in less than 1 second. i doubt that is the problem though.
 

Chroder

New Member
I tried it and it works fine for me.

Could be some sort of browser issue (they exist), so best to use Javascript as a backup.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>Redirecting</title>
    <meta http-equiv="refresh" content="0;url=http://www.o-dating.co.uk">
    <script language="javascript">
        window.location = 'http://www.o-dating.co.uk';
    </script>
</head>
<body>
Redirecting to <a href="http://www.o-dating.co.uk">www.o-dating.co.uk</a>
</body>
</html>
 

rimian

New Member
Could be a server setting. Maybe a security thing.

If it's still not working for you then try this:

<script type="text/javascript">
top.document.location.href = "http://something.com/page.htm";
</script>

that should do it.
 

Dmexio

New Member
Try this...im sure it will work, you can change the delay from the "content" value i have it set to redirect after 5 seconds.

<html> <head>
<title></title>
<meta http-equiv="REFRESH" content="5; url=http://www.google.com">
</head>
<body> </body>
</html>


All the best
________
Volcano Digital
 
Last edited:
Top