Jump to content

Problems viewing .html files on Localhost


Thund3rcat

Recommended Posts

Sorry if this in the wrong forum area - I'll move it to a more appropriate one if necessary?

 

Very new to PHP but I seem to have installed it ok and it's running as expected.  I'm dropping files into my inetpub/wwwroot drive, and when I go to my browser and type in the url "localhost/tester.php", the results are coming to screen and running as expected.  Bonus.


If I have an html file in the folder, should I be able to run it exactly the same way?  ("localhost/index.html")?  If I try it, I get an error message "Oops, that link appears to be broken"

 

Both files definitely exist in that folder - in fact I've made two very simple files containing just a string of text - "Hello World", but saved one as index.php (no actual php coding inside as such) and the other as index.html.

 

Php one comes out fine, html one reports the error

 

Am I doing something obviously wrong here?

 

There's a couple of screenshots attached for my own sanity, really.  Any help would be appreciated.

 

TC

 

 

post-142015-0-04496800-1362423423_thumb.jpg

Link to comment
Share on other sites

It'd help to know why Chrome isn't liking that page. Hit F12, go to the Network tab at the bottom, and refresh the index.html page. A row should pop up there showing what Chrome requested and what IIS responded with. Click it for details and make sure the little Headers tab is open. What does it show?

Link to comment
Share on other sites

Would you believe I went to control panel, unticked the IIS features, then ticked them all again and now it's working fine.

 

Sigh.  I'm assuming that there was one all important box that wasn't ticked the first time that is now ticked.

 

Sorry to waste your time requinix - it's all sorted now.

 

TC

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.