MODX REVO
Apache server
I’m trying to set up FURLs on the website, I made all the system settings according to the manual, I choose frozen links, I seem to fix the .htaccess file in the root directory, but anyway, when I try to follow a link like mysite.com/about, a page with a 404 error comes out.
I’m using <base href="[[++site_url]]" />
in header too. And .htaccess in the root directory looks like:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# Prevent dot directories (hidden directories like .git) to be exposed to the public
# Except for the .well-known directory used by LetsEncrypt a.o
RewriteRule "/\.|^\.(?!well-known/)" - [F]
# Rewrite www.example.com -> example.com -- used with SEO Strict URLs plugin
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_URI} \.html$
RewriteRule ^(.*)\.html$ $1 [R=301,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Moreover, the links themselves are generated, because everywhere on the site the links are indicated in the format <a href="[[~4]]">
, and when you click in the menu on the main page, the transition goes to the https://mysite/about
, which again gives 404 error.
Moreover, if you manually enter the address https://mysite/index.php?id=4
, then the page I need opens. And when you go from the “resources” tab in the admin panel, you still get to the 404 page.
The brain is already boiling, tell me where to look for the problem. I think there are problems with .htaccess, but what is wrong I don’t understand. Maybe it should not be changed at the root, but somewhere else? HELP!