My site reports error 403

My website : helena-durizot.42web.io

Reports the http error 403 but I don’t understand why. When I load it locally everything is good but with the url I directly go to https://errors.infinityfree.net/errors/403/.

I uploaded all the files in the folder htdocs like in all the tutorials I saw but still error 403.

Is there someone in the same situation as me ? Or was and fixed it ?

Please I would be so thankful if that could be solved. I really need that website very soon for my studies.

7 Likes

Thank you for your quick reply. I forgot to import my index.php file and I can finally see my pages if I do http://helena-durizot.42web.io/folder/page.
But neither php nor bootstrap apply, and this breaks my whole site because I use php code to include the header and footer on each page and bootstrap to adjust the size of my images and manage the structure of my pages. What can I do to fix this?

I’m sorry, but I don’t understand what you mean by this. Could you please share the link to your web page so we can check it for ourselves? The exact URL you shared (http://helena-durizot.42web.io/folder/page) looks like a dummy URL, and returns a 404 Not Found error for me.

Based on the information provided: please make sure that the Bootstrap and PHP include files are uploaded correctly, and the URLs/paths to the files are correct. Because it sounds like they may “not apply” because the files cannot be found at the provided paths. Especially if you use PHP include instead of require, which will silently skip include files which are not found.

8 Likes

As you said the paths may be wrongs and you were right.
Thank you a lot I was so convinced I did everything right.

You saved me.

Here’s the proper URL if you want to take a look http://helena-durizot.42web.io/vue/index.php.

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.