O
O
onhoric2014-06-21 17:50:49
MODX
onhoric, 2014-06-21 17:50:49

How to remove remove .html at the end of a web page (CMS Modx)?

Created a site for learning how to work with Modx: www.onhoric.hol.es
Cannot change the link in the Blog menu item to www.onhoric.hol.es/blog
Changed the .htaccess file as suggested on the toaster

RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP
RewriteRule ^([^.]+)\.html$ http://www.onhoric.hol.es/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule (.*) /$1.html [L]

The link stopped opening and began to give an error.
Tell me how to make human links. I've been wrestling with this all day.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alvisX, 2014-06-21
@onhoric

In the admin panel "System" -> "Content Types" -> Remove extension from HTML.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question