Problème de site qui ne charge pas alors qu'il est hébergé

Bonjour j’ai un souci avec l’hébergement de mon site. Il affiche cette erreur :

Capture d’écran 2023-03-27 203207

Pourriez-vous m’aider svp.
Il parait que ça viendrait de mon site en lui-même…

PLEASE help us help you by writing a good post!

  • we need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app
  • DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
  • Build problems? Link or paste the FULL build log & build settings screenshot

The better the post - the faster the answer.

Hi, @LeaGuiheneuf. The usual issue is a missing /index.html file. We have a support guide with more information here:

If that support guide does not help resolve the issue, please let us know.

Bonjour monsieur,

Merci de votre réponse. Le souci c’est que j’ai un fichier index.html dans mon dossier de mon site. Comment je peux faire ? Où est le problème alors ? Comment puis je vous transmettre mon dossier avec tout mes fichiers pour que vous puissiez regarder svp ? Car ici je ne peux pas vous le partager je ne comprends pas pourquoi.

Merci
Léa Guihéneuf

que dois-je faire du coup svp ? Je suis vraiment bloquée et je ne trouve pas de solution.
Pourriez-vous m’indiquez étape par étape ce que je dois faire pour résoudre cette erreur et que quand je déploie mon site je ne vois pas plus cette erreur svp. Merci

Hi, @LeaGuiheneuf. You only have one site on your team and I checked it. It does not have an /index.html file. You can confirm this by downloading the deploy.

The sites has an /index.php file but that isn’t the same as /index.html. Also, you cannot run server-side PHP at Netlify. There is a support guide about this here:

To summarize, unless you can convert this app to static files (and I don’t know if you can do so or not), it won’t be possible to host it at Netlify.

If there are other questions or concerns, please reply here anytime.

Merci pour votre réponse. Cela m’embête un peu car pour un projet noté dans ma formation je dois trouver un hébergeur gratuit avec un nom de domaine en .fr sauf que d’hébergeur gratuit j’ai trouvé que le vôtre. Auriez vous une solution, un autre hébergeur à me proposer qui est gratuit et qui supporte du code HTML,CSS et PHP svp car il m’en faudrait un très rapidement car je dois rendre mon projet le 2 Mai ?
Merci d’avance pour votre réponse.

Cordialement,
Léa Guihéneuf

Hi @LeaGuiheneuf we don’t support PHP but I recommend you try google for information on this.

https://www.php.net/manual/en/intro-whatcando.php

Ok merci pour l’information je suis toujours bloquée. En revanche si je remet mes pages en html et que j’enlève tout le php de mon site web et que par la suite je remet mon site sur l’hébergeur netlify ça devrait fonctionner normalement ou pas ? Vu que mon message d’erreur est dû au faite que j’utilise du php .

Cordialement
Léa Guihéneuf

Bonjour monsieur,

J’ai trouvé une solution, pour mon site je vais le modifier en enlevant le code php qui se trouve sur les pages de mon site web et garder uniquement le HTML/CSS. Pour cela j’avais une question : une fois que j’aurais fais ces modifications , nous sommes bien d’accord que l’hébergeur Netlify va bien référencer mon site html/ CSS sans erreurs ? De plus, cet hébergeur donne la possibilité d’avoir tous ces critères :
Le nom de domaine avec extension « .fr »
 Le Certificat (TLS/SSL). Le site doit être visible avec le protocole HTTPS.
 Site respectant le progressive Web App
 Les mots clés (courte traîne et longue traîne) que vous voulez vous positionner pour
votre site. Vous pouvez choisir plusieurs mots clés courte traîne et longue traîne
 Écrire un contenu de qualité
 Des Balises Meta Title & Meta Description
 Des balises Hn (H1,H2,…)
 Des images avec l’atribut « alt »
 Maillage interne dans votre site
 Les ancres de lien
 Sitemap, robot.txt

Cordialement,
Léa Guihéneuf

Hi, @LeaGuiheneuf. If you modify your site to function without server-side PHP code, then the answer is: “Yes, it will work on Netlify.”

What I don’t know is if you are able to modify the site not to rely on server-side PHP. That is dependent on your code and what you want the site to do.

Most people that deploy sites at Netlify are not writing their HTML files manually. Most are using a framework or “static site generator” (or SSG) to create the HTML. For example:

Taking Hugo as an example, you create site content using markdown files and then Hugo creates the HTML files, CSS files and javascript bundles for you. The developer will create very little HTML by hand when using Hugo.

My point here is that most people are not uploading HTML to Netlify (but you can do so and that does also work). Most people are using an SSG with a workflow similar to this:

  • the site content is added to a Git repository (AKA “a repo”)
  • the repo is the linked to a site at Netlify
  • when changes to the repo are pushed upstream, that triggers a new “build and deploy” at Netlify
  • Netlify then downloads the new commits to the repo, runs the build command, and - if the build command completes successfully - the new build of the site is deployed automatically

About your other questions, most of them are not about Netlify. For example, none of this below is Netlify specific (translated):

 Site respecting the progressive Web App
 The keywords (short tail and long tail) you want to rank for
your site. You can choose multiple short tail and long tail keywords
 Write quality content
 Meta Title & Meta Description Tags
 Hn tags (H1, H2,…)
 Images with the “alt” attribute
 Internal linking in your site
 Link anchors
 Sitemap, robot.txt

Our support team can assist you with questions about Netlify. However, we will not troubleshoot the code you write or help to create your site as covered in our scope of support page.

Nothing quoted above is about Netlify. Getting the site ranked on Google is not a question about Netlify. Someone else may be willing to assist with these non-Netlify questions but our support team doesn’t have the resources to do so. You are welcome to ask these questions here but our support team only assists when it is a question about Netlify itself.

For the SSL for the site subdomain under netlify.app, that is automatic. It will always work and, in fact, there is no way to disable it. We will force the site to use SSL and there is no way to opt-out.

If you have other questions, you are welcome to reply. However, please do keep in mind that our support team only answers questions which are specific to Netlify.

Bonjour monsieur,

D’accord très bien merci pour votre réponse. Cependant concernant Netlify pourriez vous m’aider à faire ceci (voir capture d’écran svp) :


Comme vous pouvez le voir sur cette capture d’écran sur Netlify, l’étape 1 “Your site is deployed” j’ai réussi à mettre mon site sur votre hébergeur Netlify cette étape est donc validé. Cependant je suis bloquée à l’étape 2 “Set up a custom domain” car ce que je voudrais garder le nom de domaine par défaut de mon site qui est : https://guiheneuflea.netlify.app/ car je ne souhaite pas payer un nom de domaine pour que mon site apparaisse sur Google et ainsi passer à l’étape suivante qui est l’étape 3 “Secure your site with HTTPS”. Je n’arrive pas à valider l’étape 2 qui est “Set up a custome domain” pour valider l’étape suivante qui est l’étape 3 “Secure your site with HTTPS”. Pourriez vous avoir accès à mon site et le faire à distance pour pouvoir m’aider svp. Merci d’avance pour votr aide.

Cordialement,
Léa Guihéneuf

You do not have to set up a custom domain if you do not wish to do so. Your site is already protected with SSL.

alors comment ça se fait que mon site n’est pas sur google. Aidez moi svp à trouver un nom de domaine gratuit sur le site freenom mais à chaque fois que je tente quelque chose cela me met indisponible. Aidez moi svp à en trouver un et à configurer rapidement le SSL j’en ai besoin pour que mon site soit mis sur Google avant le 6 avril.

Merci d’avance

Cordialement
Léa Guihéneuf

You only deployed the site three days ago. I doubt Google would have gone out and indexed it in that short amount of time unless you specifically prompted Google to do so.

I cannot help you find a free domain on freenom. This is a process you will need to undertake yourself.

Once you have a domain I suggest reading over the Custom domains documentation and over [Support Guide] DNS Quick Start - How to set up DNS to configure it. If you have trouble in configuring the domain then by all means open a new topic and the community will happily provide assistance where possible.

I don’t believe there is any guarantee that you could have your site indexed and searchable with Google or any other search engine by 6 April.

Merci pour votre réponse. Comment puis-je faire pour accélérer le processus pour que mon site soit référencé sur Google avant le 2 mai ?

Cordialement
Léa Guihéneuf

This is a question best asked on an SEO forum.

https://support.google.com/webmasters/community?hl=en

Connaissez-vous des forums de SEO qui pourraient m’aider svp.

Cordialement
Léa Guihéneuf

Maybe try these?

  1. WebmasterWorld - https://www.webmasterworld.com/
  2. Moz Q&A Forum - SEO and Digital Marketing Forum | SEO Forum | Moz
  3. Search Engine Watch Forums - https://forums.searchenginewatch.com/
  4. SEO Chat Forums - https://forums.seochat.com/
  5. Warrior Forum - https://www.warriorforum.com/seo-strategies-tactics/

D’accord je comprends mieux maintenant mais on est d’accord que mon site sera référencé sur Google avec le certificat SSL c’est à dire avec le https ?

Cordialement
Léa Guihéneuf

HTTPS is enabled by default on all Netlify sites. So yes.