Skip to main content Accessibility Feedback

The .htaccess cheat sheet

Earlier this week, I wrote about how I handled redirects for my various legacy websites that I’ve since discontinued.

In the article, I mentioned that I lean heavily on my .htaccess file for this of thing. One tool that I’ve found really useful for doing stuff like that is the .htaccess cheat sheet.

This handy little one-page site covers things like how to force www (or force no www), how to force https, how to deny access to certain files or directories, and so much more!

It’s amazing toolkit to have at your disposal. Check it out at htaccessCheatSheet.com.