.html extensions hide on the openlitespeed

molveno

New Member
#1
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]
 

Pong

Administrator
#2
You can not just hide the file without extension. Web server will need the mime type to act accordingly for right handler, I don't believe hiding extension is a goog practice to do.
 
Top