Answer the question
In order to leave comments, you need to log in
.htaccess not working on hosting from reg.ru, how to fix it?
In the root folder on the site (hosting on reg.ru) there is the following .htaccess file:
RewriteEngine On
AddDefaultCharset UTF-8
DirectoryIndex index.php main.php venki.html
RewriteBase /
RewriteRule (.*)\.html$ $1 [R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ /index.php?route=$1 [QSA,L]
Answer the question
In order to leave comments, you need to log in
1. You may have nginx+PHP-FPM and .htaccess won't work at all. Move the rules to nginx.
2. You do not have mod_rewrite enabled, go to the panel and turn it on, if not in the panel, you can try this
a2enmod rewrite
service apache2 restart
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question