I used Cyber panel v2.0 with openlitespeed VERSION: 1.6.14 OPEN .htaccess I am trying to apply the .htaccess rules but it doesn't work Is there ready code for openlite to hide .html extensions? For .htcacess I made it in vconf according to openlite ;
rewrite {
enable 1
loglevel 9
rewriteFile /home/mywebsite.com/public_html/.htaccess
END_rules
}
but it doesn't work as i want. What I want is to hide the .html extensions. please I request your help.
My codes for .htaccess;
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
rewrite {
enable 1
loglevel 9
rewriteFile /home/mywebsite.com/public_html/.htaccess
END_rules
}
but it doesn't work as i want. What I want is to hide the .html extensions. please I request your help.
My codes for .htaccess;
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]