Answer the question
In order to leave comments, you need to log in
All pages of the site redirect to the main page, how to fix it?
Site modx version 1.0.15, some time ago all pages of the site began to redirect to the main page. The .htaccess file was changed to ftp, and the old one was renamed to ht.access, + a bunch of files with encoded code and the wp-admin and wp-content folders like on WordPress. Also in the admin panel, the message "... You have enabled checking system files for changes specific to hacked sites. This does not mean that the site has been hacked, but it is desirable to view the changed files. (index.php, .htaccess, manager/index. php, manager/includes/config.inc.php)..." in short, they broke the site. I restored the old htaccess, leaving only the uncommented code there:
RewriteEngine On
RewriteBase /
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question