E
E
elenapetrova19952022-02-26 17:22:10
HTML
elenapetrova1995, 2022-02-26 17:22:10

How to make html site work in one directory in Wordpress?

the essence of the question is in the title, how to configure htaccess so that in one directory there is a site on html and wordpress is also installed?

If we assume there is such a page (/game1.html) in the html file, then so that it opens, if not, WordPress already works and it shows its pages.

The current site works on html, here is its htaccess

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,L]

RewriteRule \.(jpe?g|jp2|psd|tga|tif|tiff|bmp|gif|png|css|ico|swf|svg|svgz|flc|fli|flv|avi|asf|asx|mp3|m4a|mp4|mpg|m4v|ram|ra|tar|pdf|doc|docx|rtf|rtx|xsl|xsl|ods|odt|odp|odg|odf|odc|odb|mpp|ogg|oga|pot|pps|ppt|xml|xmlx|txt|css|htc|js|eot|otf|ttf|ttc|woff|exe|zip|rar).*$ - [L]
RewriteRule ^zamena\d?\.php$ - [L,QSA]

RewriteRule ^ind\.php$ - [L,QSA]
RewriteRule ^(.*)? ind.php?html=$1 [L]
ErrorDocument 404 /ind.php?mode=404

DirectoryIndex ind.php
# UTF-8 or WINDOWS-1251
AddDefaultCharset WINDOWS-1251

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question