• Resolved Philippe

    (@wp207)


    Hello, the plugin ‘Site Health -> Tools -> Check files Integrity’ warns that the file .htaccess is an unknown file. I have a screen copy. The file is not corrupted because I have recreated it. I have cleared caches. I have rollback to PHP 8.2. The issue is not fixed. I don’t know what to do else. Can you help please ? Thanks a lot.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • J Burns

    (@subiewrx)

    Hi @wp207,

    Thanks for reaching out!

    Could you please share the screenshot you mentioned?

    Please check the following:

    1. Verify the .htaccess File Location
    The .htaccess file is typically located in the root directory of your WordPress installation (e.g., /public_html/.htaccess).

    2. Inspect the .htaccess File
    Access the file via FTP, SFTP, or your hosting provider’s File Manager.
    Open the .htaccess file in a text editor and review its contents. A default WordPress .htaccess file looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    The .htaccess file should have permissions set to 644.

    If you’re still experiencing an error, rename your current .htaccess file to htaccess_old.txt and create a new .htaccess file using the text above.

    Please let me know how it goes.

    Thread Starter Philippe

    (@wp207)

    Hello @subiewrx

    Here is the screen copy, it shows that the file is located at the root….and unknown.

    Thread Starter Philippe

    (@wp207)

    For the content of the file, I am having :

    • # BEGIN WordPress
    • <IfModule mod_rewrite.c>
    • RewriteEngine On
    • RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    • RewriteBase /
    • RewriteRule ^index\.php$ – [L]
    • RewriteCond %{REQUEST_FILENAME} !-f
    • RewriteCond %{REQUEST_FILENAME} !-d
    • RewriteRule . /index.php [L]
    • </IfModule>
    • # END WordPress
    Thread Starter Philippe

    (@wp207)

    So I have this line in addition : RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    I have deleted it and the issue is still there. The permissions of the file are set to 644.

    Thread Starter Philippe

    (@wp207)

    I had created a new file 3 times and each time the new one contains :

    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    So what can I do now ? Thanks a lot !!!!!

    J Burns

    (@subiewrx)

    Hi @wp207,

    Thanks for sharing the screenshot. Your .htaccess file looks good.

    The warning from the Site Health plugin in WordPress about the .htaccess file being an “unknown file” indicates that the plugin doesn’t recognize the file as part of the core WordPress installation or its checksums. Since you’ve recreated the .htaccess file and confirmed it’s not corrupted, you can safely ignore it as long as the file is functioning properly and your site is operating normally.

    Please let me know if you have any other questions.

    Thread Starter Philippe

    (@wp207)

    Heelo @subiewrx

    Thanks for your reply. Indeed I have recreated the .htaccess file but I don’t know how to confirm it’s not corrupted ! How can I do that ? Furthermore, yes, the site is operating normally but I might know (I have read this, I don’t know if it’s true) that the .htaccess file is very important for search engines like Google and for its SEO. And actually my site is not good through an SEO point of view ! It was much more better before I have this issue with the .htaccess file. Maybe it’s due to something else, I don’t know. In any case, I would really like to solve this .htaccess issue. Do you think it could be due to a kind of jam or something bad in the SQL tables ? Thanks again. Great day. Philippe

    Hi @wp207,

    Your .htaccess includes that standard settings recommended by WordPress here-
    https://developer.wordpress.org/advanced-administration/server/web-server/httpd/

    Your .htaccess file is not corrupted and is correct. If there were any issues with your database tables you would see a warning or errors in WordPress > Tools > Site Health.

    I checked your site using the SEO Analysis feature in All in One SEO and there are no issues being reported – https://a.supportally.com/i/gjeQ8q

    I checked your homepage using the Google Rich Results Test and it can be crawled and indexed-
    https://search.google.com/test/rich-results/result?id=sQ33YDyg8geW-xnJVhmiQw

    Your site robots.txt and XML sitemap are working as expected so Google can crawl your site content.

    I see that your site is Google Verified. Please use Google Search Console to see if there are any crawling or indexing issues being reported.

    Feel free to share screenshots of the Indexing > Pages report and I’ll be happy to review them for you.

    Thanks!

    Thread Starter Philippe

    (@wp207)

    Hello @subiewrx

    Thanks a lot for everything you checked, I appreciate !

    For Google Search Console, indeed I thought it needed to be investigated too. First of all, I had 3 properties in GSC, I have deleted one so it remains 2 as you can see in the screenshot. Is it correct to have these 2 properties (the first one is the main one) ?

    Then, in the indexing -> pages report I have this :

    In the last 2 sections (explored and detected pages but non yet indexed), I have these 4 pages :

    I have asked Google to index them, it’s in progress.

    For the 4 first sections (404 errors to pages with redirection), there are things/issues I don’t understand and pages that do not exist anymore. I guess Google will treat all this in the next months… (If you know how I can clean all this, let me know as I did not find a solution).

    So now I think this ticket is resolved/closed and I my .htaccess file will remain ‘unknown’ in WordPress, but it’s not a problem as my site is functionning well. Thanks again, great day ! Philippe

    Hi @wp207,

    When checking your domain in the browser, it is https://therapies-alternatives-bordeaux.fr/ That is domain that should be used when checking your reports in Google Search Console.

    404 Pages
    These URLs are redirecting to a page that no longer exists.
    Will this error affect Google ranking? 404s don’t affect your ranking.
    How to fix: Check the URL: Make sure the URLs listed as soft 404s are indeed no longer needed or valid.
    URL Removal Tool: Use the URL Removal Tool in Google Search Console to request the removal of the outdated URL from Google’s index.

    Please let me know if you have any other questions.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘.htaccess is an unknown file’ is closed to new replies.