Mi sitio web está completamente hecho en HTML, por ejemplo en: example.com
Cuando voy a la página " Contacto ", la dirección se ve así:
ejemplo.com/contacto.html
Me gustaría dos escenarios que se dirigirán a la dirección con un sufijo "/" :
Actualmente solo tengo el número 1 en .htaccess:
#example.com/contact/ will display the contents of example.com/contact.html RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^([^/]+)/$ $1.html [L,QSA] #301 from example.com/contact.html to example.com/contact/ RewriteCond %{THE_REQUEST} ^[AZ]{3,9}\ /.*\.html\ HTTP/ RewriteRule ^(.*)\.html$ /$1/ [R=301,L]¿Cómo agregar un segundo escenario?