Force “File Save As” Prompt When Downloading

Posted: April 2nd, 2009 | Author: Matt | Filed under: .htaccess, Optimization, Web Programming | Tags: , | 1 Comment »

A simple feature any website can add to their downloadable content is to force a “File Save As” prompt when the user clicks the link.  There are a number of ways you can implement this.  Some people may do it a convoluted way through PHP or another language but the easiest thing I’ve found is [...]


Removing Trailing Slashes From Your URL

Posted: November 27th, 2008 | Author: Matt | Filed under: .htaccess, Web Programming | Tags: , , | 3 Comments »

A good site should always have clean URLs.  Sometimes there are variations of the URL that will point to the same page.  These variations are not good for a few reasons:

URLs are harder to remember.
URLs in print/advertising need to be simple (which gets back to #1).
Google Analytics reports can be easily screwed up.

My biggest concern [...]