When I try to enter my website, it is giving 403 error. How can I solve this problem?

Website URL

aksaitschool.free.nf

Error Message

403 Forbidden
Server or website configuration is blocking you from viewing this page

Welcome to the community.
Please read this to solve your problem:

6 Likes

.htaccess should be in .htdocs, right?

If you are creating an .htaccess file for your website, then yes, it should be in the correct htdocs folder.

5 Likes


The homepage is index.html. Is it correct?

DirectoryIndex index.php index.html index.htm index2.html
this is directory index

Your index.html file and other website content are currently in the aksa directory, which is inside your htdocs folder.

So, your website is accessible at:

https://aksaitschool.free.nf/aksa

If you want your website to be visible on the main page (https://aksaitschool.free.nf), please move all files and folders from the aksa folder directly into the htdocs folder.

6 Likes


I solved index file problem. But still it is giving 403 error

Could you please provide a screenshot of the htdocs folder, as well as the full .htaccess file code located within that folder?

3 Likes

Thank You Worked

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