Answer the question
In order to leave comments, you need to log in
I uploaded the .htaccess code, and because of it, pages are downloaded. What's the matter?
Pages of the form page.html, over time it was necessary to use php-code on these pages. Changing the extension from page.html to page.php is not an option. In the search engine in high positions of the page.
As a result, I found a code that allows you to process php on html pages.
Together with all the code, it turned out like this:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
AddType application/x-httpd-php .php .htm .html
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP
RewriteRule ^([^.]+)\.html$ http://vash-master.tv/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule (.*) /$1.html
RewriteCond %{REQUEST_URI} /index
RewriteRule ^(.*)$ http://vash-master.tv/ [R=301,L]
Answer the question
In order to leave comments, you need to log in
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html .phtml
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question