Site showing 403 access denied

What is your website?

4 Likes

http://mathsmultiplicationgame.42web.io/

Please screenshot file directory of your hosting account

4 Likes

from that screen shot its not clear where you have uploaded the files, they should be uploaded to /htdocs if there is no index file here then you will receive a 403 error

if you find that the /htdocs folder has somehow been deleted then recreate it and upload there but I think if this was the case you would get a 404 error not 403

2 Likes

Make sure to upload them to the correct htdocs, not a random htdocs that caught your sight right after logging in to FTP. The current symptom however looks like you’ve deleted the htdocs.

If you are uncertain about this please go to Client Area then current hosting account > Domains, and recreate it.


It’ll still be 403, but the iFastNet one.

5 Likes

I checked your account.

The files are indeed uploaded to your account, but they are uploaded to a subfolder with the name 2. Maths Game (JS). So you will see your website is live on the URL followed by that sub path: http://mathsmultiplicationgame.42web.io/2.%20Maths%20Game%20(JS)/

If you don’t want the sub path to be required in the URL, simply move the files out of the subfolder and directly in the htdocs folder.

There is also a file index.html_ in the htdocs folder. If you want that file to be used, it must be called exactly index.html.

7 Likes

u mean we should not upload folder inside htdocs or what

not understand where is subfolder
last time i uploaded in same way for one site that wroks properly.

I mean that files will be available on the location you upload them to. If you want to upload a subfolder, you’re absolutely free to do so. But then the files will be available in that sub folder.

Servers are pretty dumb. They look for exact file names in exact locations. They won’t search for you and they won’t try to guess what you’re probably looking for. Either it’s exactly right or it’s wrong.

The subfolder is in the htdocs folder:

image

When checking the files that have been uploaded, please make sure to check the actual files that have actually been uploaded. Not just what should have been uploaded based on your local files.

7 Likes

anther issue that im facing ,the link you provide followed by the sub path is displaying in the pc but not on mobile phone showing(the site cant provide a secure connection).
how to fix it

This

4 Likes

did not understand properly ,plz provide more easy explanation.

and why is not my site mobile responsive

The Internet is complex. It’s not like click a button and everything is done — the guide we gave you above is already very detailed, and by simplifying it it will actually get more confusing.

So please try to understand — we already make everything as simple as possible.

Ask yourself. A browser cannot guess what it should look like, it only shows what the website told it to show. If your styling didn’t tell the browser what your site should look like on mobile, then of course it won’t be responsive.

That is to say, sometimes by adding

<meta name="viewport" content="width=device-width, initial-scale=1.0">

into the <head> alone is enough. You can try that, however if it still don’t work, I’m afraid that you have to look into your code.

4 Likes

just leave the styling ,
site is still showing error 403 access denied in pc also .
means its not displaying ,evrything look correct but still

Read the post?

3 Likes

but if the same URL we want to open in mobile phone it not displaying showing (site cant provide secure cinnection) even i did some change in code .
what more changes should i make .so that site should be responsive in mobile also.

and what about SSL certificate

I already told you this here:

and here:

Your website does not support HTTPS right now, only HTTP.

So if you navigate to http://mathsmultiplicationgame.42web.io/2.%20Maths%20Game%20(JS)/ , it works, but if you go to https://mathsmultiplicationgame.42web.io/2.%20Maths%20Game%20(JS)/ , it does not. Whether HTTPS is being used or not depends on the prefix of the URL you visit. You should be able to confirm this on desktop too.

In the configuration of your browser, you can usually configure that all websites must be using HTTPS at all times. If you have that enabled on your phone, and your website doesn’t support HTTPS, then you will not be able to access your site.

As for how to fix it, it’s very simple: you need to add HTTPS support to your site. And to do that, all you need to do is follow the steps in this article:

In short: write responsive CSS. This takes a little bit more effort than just adding a line of HTML to your page.

But by now, we’re discussing three fairly unrelated issues in a single topic, and it’s getting messy. I suggest we stick to the issues that are actually somewhat hosting related: the 403 error and the SSL. How you style your page and how you handle screen sizes is entirely a CSS code thing, and unrelated to hosting.

4 Likes

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