Page 1 of 1

when I don't write /index.html in a browser I get a page with the code

Posted: Fri Oct 09, 2020 12:26 pm
by fker
Hi Pablo,
When I write in a browser (google) https://46-osteo.fr/ I get a page with the code fully exposed.

When I write: https://46-osteo.fr/index.html I get the website

I probably missed something somewhere.

Can you help me?

Francois

Re: when I don't write /index.html in a browser I get a page with the code

Posted: Fri Oct 09, 2020 12:33 pm
by jerryco
Is there a .htaccess file in the directory? If so, what is the content? This might explain redirecting I think.

Re: when I don't write /index.html in a browser I get a page with the code

Posted: Fri Oct 09, 2020 12:47 pm
by Pablo
This is a server configuration issue. The server displays the script file (js) instead of the html file.
To solve this you can either change .htaccess on the server or disable 'Generate external JS' in Tools->Options->HTML

Re: when I don't write /index.html in a browser I get a page with the code

Posted: Tue Oct 13, 2020 4:18 pm
by fker
Thanks ... and sorry for the late reply.