Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shahr's avatar
Level 10

google 404 not found

I created a google console. The google console gives an Identification code for Google. Then I uploaded this file to cPanel. When I write in the address bar: https://example.com/googlee1c5cb16391abc123.html . I see this message.

404 | Not Found

I think the problem is from the .htaccess file.

I want to https

.htaccess

<IfModule mod_rewrite.c>
   RewriteEngine On
   # Force SSL
   RewriteCond %{HTTPS} !=on
   RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
   # Remove public folder form URL
   RewriteRule ^(.*)$ public/ [L]
   RewriteCond %{REQUEST_URI} !^/googlee1c5cb16391abc123.html$
   RewriteCond %{REQUEST_URI} ^/googlee1c5cb16391abc123.html$
</IfModule>

0 likes
1 reply
LaryAI's avatar
Level 58

The issue seems to be that the URL for the Google verification file is not accessible and returns a 404 error. This could be due to a misconfiguration in the .htaccess file or the file not being uploaded to the correct location.

To fix this issue, try the following steps:

  1. Double-check that the Google verification file has been uploaded to the correct directory on the server. It should be uploaded to the root directory of your website (e.g. public_html or www).

  2. Check that the file name and extension are correct. The file name should be exactly as provided by Google (e.g. googlee1c5cb16391abc123.html) and the file extension should be .html.

  3. Verify that the .htaccess file is not blocking access to the Google verification file. The current .htaccess file seems to be allowing access to the file, but you can try commenting out the following lines temporarily to see if it makes a difference:

# Remove public folder form URL
RewriteRule ^(.*)$ public/ [L]
  1. Make sure that the SSL certificate is installed and configured correctly on the server. You can check this by accessing your website using https:// instead of http://. If the SSL certificate is not installed or configured correctly, you may need to contact your hosting provider for assistance.

  2. Finally, try accessing the Google verification file directly using the https:// protocol (e.g. https://example.com/googlee1c5cb16391abc123.html). If you are still getting a 404 error, it may be worth contacting Google support for further assistance.

If none of the above steps work, please provide more information about your server setup and any error messages you are seeing.

Please or to participate in this conversation.