Hello
I’m sorry, I can’t see what I do wrong.
I enter this in my terminal for activate the url rewriting module:
$ sudo a2enmod rewrite
This module is already enabled!
Restart Apache : Ok.
Go in manager and activate these options:
Use friendly URLs: Y
Prefix for friendly URLs:
Suffix for friendly URLs: .html
Use friendly aliases: Y
Use friendly alias path: Y
Allow duplicate aliases: N
Automatically generate alias: N
Save: Ok.
Let’s rename de ht.access in .htaccess in the sub-directory /var/www/modx921/ where I have install MODx : OK.
Edit the .htaccess:
# php_flag zlib.output_compression On
# php_value zlib.output_compression_level 5
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /modx921/index.php?q=$1 [L,QSA]
In the virtualhost I had define for /var/www/modx921 to
http://modx921.com/ : Ok.
http://modx921.com/contact-us.html : Internal Server Error. The same for all the url rewrited.
Could you help me please?