Home how to remove .html extension from url in tomcat server
Reply: 0

how to remove .html extension from url in tomcat server

suresh
1#
suresh Published in 2018-02-08 14:45:52Z

The script is below. Also with the script i found online for hiding the extension from url

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ /$1 [L,R=301] 
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.301443 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO