iLandi
April 17, 2024, 4:30am
1
(please specify the URL of the site on which you are experiencing the problem)
Error Message
(please share the FULL error message you see, if applicable)
403 Forbidden
Server or website configuration is blocking you from viewing this page
Other Information
(other information and details relevant to your question)
I completely removed my semi-finished website (https://socod.net ) , but it still displays “403 Forbidden” error .
You already answered your own question. If the folder of a certain website contains 0 files, it will raise a 403.
While working on your website, you may be redirected to the InfinityFree 403 error page . This article explains why this can happen, and what you can do to solve it.
The directory does not contain an index file
If you try to request a URL without a file name in the URL (e.g. http://example.com/ or http://example.com/blog/), the server will look for a so-called index file.
An index file is a file with the name index.php, index.html, index.htm or index2.html in the folder you’re trying to access.…
7 Likes
iLandi
April 17, 2024, 4:43am
3
but, if i reinstall the web system, it still shows the 403 errors.
What software? How did you configured everything? Where does it shows 403? What did you expected to see?
Just stating “it shows 403” is far from enough for us to determine the problem.
5 Likes
iLandi
April 17, 2024, 4:47am
5
software is Drupal
i just deleted the file index.php , and then removed the whole website.
Have you already installed it back? If yes,
Can you please share a screenshot of the current content of your htdocs? Does the software was actually installed into the correct place?
Also, please read the guide I shared above, as it contains many useful information.
6 Likes
iLandi
April 17, 2024, 4:58am
7
i just coved the file index.php, then can not restore it , i deleted it.
i reinstalled the web system , if i create a index.html file , i can browse this file.
if i browse the file index.php, it will shows unexpected error.
I suspect it raised an error 500.
When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500.
There are typically two reasons which can cause this error:
The PHP code has crashed.
The .htaccess file contains invalid rules.
Here are some things you can try to debug and fix this.
Fixing crashing PHP code
A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed.
Gett…
Since you mentioned you are using a CMS, is the DB configured correctly?
Many websites use MySQL databases to store information and settings. However, there are some reasons why the connection to the database may fail. This article describes some commonly seen error messages when connecting to a database, as well as some general tips to keep in mind when setting up a database connection.
Common Error Messages
Using MySQL is great, but the error message returned if there is an issue logging in to your database can be quite confusing. Here are some commonly seen error…
I cannot view the files however, did you deleted them again?
6 Likes
iLandi
April 17, 2024, 5:11am
9
i can browse index.php and /user/login now , but i can not minutes ago . the domain still shows 403 error. i will login and try again.
It works for me though, no more 403.
However I do see mixed content, and your website indeed works with HTTPS, which means your site isn’t forcing an HTTPS connection.
After you’ve enabled SSL for your website, you’ll probably want to redirect all traffic on your website to the https version of your site. There are multiple ways to do that. Let’s compare some commonly used ways.
Using script configuration
Some scripts (including Wordpress) have a setting which allows you to set your website URL. By changing this URL from http://example.com to https://example.com , the script will probably redirect visitors to the https version of your site. Even if your script…
6 Likes
iLandi
April 17, 2024, 5:29am
11
yes , i can not configue it now .
the website seems runs properly now.
Thanks for your help
system
Closed
April 24, 2024, 5:29am
12
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.