Forum Moderators: open

Message Too Old, No Replies

Problem with IE 6.0.2900 and meta refresh

         

runner

5:01 am on Jan 17, 2005 (gmt 0)

10+ Year Member



I've set up a simple web page that redirects the user to a different page, see below. Works fine in Netscape but in IE it just keeps loading the blank page over and over and never redirects to the page listed in the meta tag. Is there a bug in IE 6? (that's a loaded question!) I edited the URL below as it would be against policy to list a personal URL.

<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="0; [#*$!xxxx.com...]
</head>
<body>
Redirecting, please wait...
</body>
</html>

tedster

6:15 am on Jan 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The syntax I've used includes url= before the actual url.

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

Also, meta refresh is user agent specific, and not part of a standard. Note this recommendation from the W3C:

Some user agents support the use of META to refresh the current page after
a specified number of seconds, with the option of replacing it by a different URI.
Authors should not use this technique to forward users to different pages, as this
makes the page inaccessible to some users. Instead, automatic page forwarding should
be done using server-side redirects.

W3C Reference [w3.org]

runner

5:07 pm on Jan 17, 2005 (gmt 0)

10+ Year Member



Hmmmm... Thanks for the info. The reason I'm doing this is because I'm trying to hide the URL of a "secure" page that really isn't all that secure. I guess that's security by obfuscation? I can't put the page in question in a password protected directory so I made up that little redirect page and put the redirect page in a secure directory. The user has to log in to get to the secure redirect page which then redirects back to the final destination.

Concerning redirects in the apache conf file... if the original URL is in a password protected directory but the redirect is not, will apache require authentication?

runner

5:20 pm on Jan 17, 2005 (gmt 0)

10+ Year Member



By the way tedster, adding the "url=" fixed it. Still, I think I'd better find a better way to do this.

Thanks...