I am a beginner with node.js and am using express with the ejs layout, and I want to know how to get rid of the .html extension when putting up a page. For example if I go to my localhost:3000/about.html - that works but I want it to show up as just /about. Also, having trouble figuring out how to change the favicon if anyone knows how to quickly change that from the express default.
Any help would be great thanks.
The Favicon issue is usually a caching problem. As long as you have this code in your base html layout:
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico">
Then just navigate to wherever that image is with your browser, and that should force your cache to update.
				
				I figured it out. I looked at this post Render basic HTML view in Node JS Express? which solved the problem I was having.
     app.engine('html', require('ejs').renderFile);
 app.get('/', function(req, res){
   res.render("index.html");
 });
And this all goes in the app.js or whatever file you are running.