Forum Moderators: open

Message Too Old, No Replies

Password protected directory.

Only Firefox renders page?

         

D_Blackwell

1:17 pm on Sep 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I password protected a directory containing just a few pages. Firefox, Opera, and IE all require and accept the username and password. Only Firefox renders the entry page. Opera shows the correct URL, but does not render the page. IE shows the correct URL, but renders ONLY the background image for the page. Both Opera and IE will display the correct source code for the page - but it does not display.

I can then directly input the URL to any of the other pages in the directory for both Opera and IE, and they render correctly. At no point does the entry page render in Opera or IE.

Have tried naming the entry page, index.php index.html resources.html - only Firefox allows and renders the directory entry page every time.

I'm going loopy.

Marshall

2:17 pm on Sep 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can you post relevant HTML and CSS if applicable without compromising the password, etc.

Marshall

D_Blackwell

5:04 pm on Sep 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>
x x, Index - x x
</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="shortcut icon" type="image/x-icon" href="http://www.example.com/favicon.ico" />
<meta http-equiv="content-style-type" content="text/css" />
<link rel="stylesheet" type="text/css" href="../css.css" />
<meta name="description" content="x x , Index" />
<style type="text/css" media="screen">
</head>
<body>
<div id="nav">
<div class="default">
<a href="../contact.php">
Contact
</a>
</div>
<div class="default">
<a href="color-swatches.html">
Color Swatches
</a>
</div>
<div class="default">
<a href="grey-scale.html">
Grey Scale Chart
</a>
</div>
<div class="live default">
Another link.
</div>
</div>
<?php
include ("logo.inc")
?>
<div class="interior-block">
<div class="inner-box">
<div class="hdr right">
Text
</div>
<img src="../images/image.jpg" class="lft screenshot" style="width: 250px; height: 176px;" alt="Alt. for image." title="" />
<p>
More text.
</p>
</div>
</div>
</body>
</html>

Doesn't make any difference if I drop the external CSS. Page does not render, but does source code is accessible.

The other pages in this directory are nearly identical in the <head>, yet once in the directory I can input the URLs and they display.?

encyclo

6:28 pm on Sep 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[b]<style type="text/css" media="screen">
</head>[/b]
<body>

If the above is a direct copy/paste, you're opening a

style
declaration, but not closing it. This would explain the blank page. :)

Either remove the

style
altogether, or close it with a
</style>
before the
</head>
. :)

D_Blackwell

8:29 pm on Sep 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



"Well, shut my mouth:))"

The page was validated, but obviously I let that line creep in afterwards, and then a matter of looking but not seeing.....

I'll remember this one for awhile. Thanks.