In general, there is a .htaccess file. Its contents are 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, error 404 appears. You need to make it so that you can access the html files from the root, for example, the confirmation file in the webmaster panel - without it you cannot confirm ownership of the resource. In general, an exception to the rules :)

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

Thanks a lot in advance :)

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

    3 answers 3

    why not redirect from index.php to index.html

    Temporarily put in the index. Php code with redirection to the file index. Html, when you confirm ownership you just remove.

    For example, <HTML> <HEAD> <META HTTP-EQUIV = "REFRESH" CONTENT = "1; URL = / index.html"> </ HEAD> <BODY> </ BODY> </ HTML>

       DirectoryIndex index.html 

      And it will load * .html

         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 

        Now you should be able to confirm ownership of the resource.