Exception from HTACCESS rules

In general, there is a .htaccess file
Its content is as follows:

AddDefaultCharset UTF-8
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} .*/http-bind
RewriteRule (.*) /http-bind [L]
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !/ow_updates/index.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php

When accessing the left *.html file, a 404 error pops up
It is necessary to make it possible to access html files from the root, for example, to the confirmation file in the webmaster panel – without it, it is impossible to confirm the ownership of the resource.
In general, an exception to the rule 🙂

And, if possible, throw in the code so that Index.html is loaded by default, and not index.php

Many thanks in advance 🙂

UPD: Correction, if it helps – htaccess file from CMS Oxwall (oxwall.org, oxwall.su)


Answer 1, authority 100%

why not redirect from index.php to index.html

Temporarily put a code in index.php with a redirect to the index.html file, when you confirm ownership, just remove it.

Like this
<HTML> <HEAD> <META HTTP-EQUIV=”REFRESH” CONTENT=”1; URL=/index.html”> </HEAD> <BODY> </BODY> </HTML>


Answer 2

DirectoryIndex index.html

And it will load *.html


Answer 3

RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !/ow_updates/index.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !^/[^/\.]*\.html$ #   *.html   
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php

You should now be able to verify ownership of the resource.