Skip to main content
Participant
February 9, 2018
Answered

php coding in html file

  • February 9, 2018
  • 1 reply
  • 961 views

i have a html template created in dreamweaver, when uploaded the browser directs me to my index of / page. im not sure what is missing from the coding im thinking im missing some php coding in the file so that the page may be displayed. Im new to dreamweaver first time trying to create site from scratch.

This topic has been closed for replies.
Correct answer WolfShade

ok i uploaded the original index file from the template i used. now when i search my site it gives me the original template but still no css just the basic design code. would i need a index.html from my host?


Viewing source code on your site, I see a lot of links like:

file:///Macintosh%20HD/Users/stevenlarocque/Desktop/html5up-overflow/assets/css/main.css

This is not a proper FQDN (Fully Qualified Domain Name) nomenclature.  What is required is either a FQDN path (ie, https://www.yourdomain.com/css/cssfile1.css), or a relative path (ie, /css/cssfile1.css).  The "file:" at the beginning indicates that you used an IDE (Integrated Development Environment) to set the link/reference on a local system (which might work locally but will break when you push it to the production server.)

Hope this helps,

^ _ ^

1 reply

Jon Fritz
Community Expert
Community Expert
February 9, 2018

If you mean a Template .DWT file, that file does nothing when uploaded, it's only used by DW to update Child Pages made from it locally. You then need to upload the child pages to the server.

If you're not working with a .DWT file, we'll need a little more explanation, or maybe a link to your work in progress to help you out.

Participant
February 9, 2018

i do not believe it is a .DWT file my website is www.les-mecanique.com if you were to load it it gives me the index menu of my public_html file from cpanel. the file landing page les 2018 simple.html is the desing i uploaded and if you click on that it does bring you to the page but not complete

WolfShade
Legend
February 9, 2018

The web server (IIS, Apache) should have the 'default documents' defined.

One thing that I can say, however, is that you should disable directory browsing as a security precaution.

Also, you should _NOT_ use spaces in document names.  Period.  Replace them with underscores and adjust your links accordingly.

Hope this helps.

^ _ ^