403 Access Denied

Website URL : club-art.free.nf

uername : if0_38653544

I don’t know why, but when I tried to open my site, an error called 403 Access Denied showed up.

and i have index file and in the directory status i have this error me No index file was found for your website!

8 Likes

i dont have 403 Forbidden , i have 403 Access Denied

Does it look like this?

If not, the server might be having a temporary issue.

1 Like

The “Forbidden” and “Access Denied” are just the words that are used to describe the error.

the 403 is the important bit. So either way, that article will help you fix a 403 error

5 Likes

Ok, first things to check, do you have an index.html or index.php file in your htdocs folder?

Secondly, remember the server is case sensitive. so Index.html wont work.

4 Likes

thats your problem

the index.php needs to be in the root of the htdocs folder, not a sub folder

Alternativly, if theres a reason why the index file has to be in that folder, then you can create a .htaccess file with the following rules:

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/resources/views/
RewriteRule ^(.*)$ resources/views/$1 [L]

I’m not good at .htaccess rules, so that may need some tweeking

alternativly, you could put an index.php file in the root of your htdocs folder that redirects to the corrected site

6 Likes

you mean like this ?

1 Like

Yes, that’s where it has to be!

2 Likes

Spot on :slight_smile: is your site working now?

Based on this screenshot:

OP’s site is working, but I think it’s missing a few components.

yes i dont now why the components and styling are missing

i did that in the index.php to redirect

Looking at your page source, It doesn’t look like youre referencing a stylesheet, and I can’t work out from the html where the images are ment to be either.

3 Likes

The directory structure of your website looks like a Laravel website. If so, you’re doing this COMPLETELY the wrong way.

The resources/views/ directory only contains templates for your web pages. They are not supposed to be accessed directly, because Laravel needs to load them to compile the Blade templates.

I suggest you delete the index.php in your root directory and instead setup these .htaccess rules that should make your website work:

7 Likes

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