I cant access my website due to error message

I was able to succesfuly deploy my website but the whole scenerio start when im trying to upload my project using filezila acording to the video tutorial i watch on youtubed the filezila coudnt connect to so i do it manualy

Inside the htdocs folder
I drag and drop my project there and include a .htaccess file

But the page shows i can proceed to my website that i shouild delete the index2.html

So i did ,after deleting the inde2.html file the page show

403 forbiden
Here is the link to my website
openshare.fwh.is

And this is my file layout in htdocs

Please help me out

can you providde the contense of your .htaccess file

and do you have a custom “index.php” or “index.html” in your htdocs folder?

As for the filezilla error, can you share the error you’re getting with that? We might be able to fix that too.

2 Likes

As at now i dont have any .htaccess file

I dont have any custom index.php or html file in the root dir

Thats the reason for the error then

The server looks for an index file in the htdocs folder. if there isn’t an index.html or index.php it cant find anything to serve, and so throws an error.

6 Likes

But how can i resolve this or why am i not having the file in my project

If you havent uploaded an index file as part of the project, infinity free won’t make it automatically for you.

To fix this, make a homepage for your website, call it index.php or index.html, and upload it to the htdocs folder.

5 Likes

In a typical Laravel project, you won’t find an index.php or index.html file directly in the root directory of the project. Instead, the index.php file is located in the public directory.

Is the rest of the website in the public directory?

If so, you just need to move everything in the public directory into the htdocs directory. Alternativly you can put an index.php file together that automatically redirects to the /public folder

If you navigate to http://openshare.fwh.is/public/ it will also launch the index file in that folder

Looking at the directory structure of your website, it appears you are using a Laravel site?

If so, you can try creating a .htaccess file in the htdocs folder of your website with the contents from this article:

5 Likes