A simple htaccess line for microsites

If you’re running a simple site, you may find that using even one sub-directory is overkill. You have one CSS, one JS, and one HTML for the entire site, and name them after your project. If you’re like me, and end up working on multiple sites at a time, it helps if the file names are simple and named after the project. Where that fails is your main “index.html”. I’ve played with redirecting to a project.html file, or having a splash page index.html that redirected. But my solution-de-jour is adding a line to my .htaccess file:

DirectoryIndex my_awesome_project.html

which tells apache to serve my project html when looking for an index file. This is basically a very specific redirect, but you don’t have to serve any possibly sketchy 301 or 302 redirects.

Now I don’t have to guess which of the four “index.html” files I’m working on go to what.

July 21st, 2010 | Mental Note: Add Category | No comments

Announcing lazyCSS.com

I took a few hours today to make a tool to help me convert CSS snippets betwen single-line and multi-line.

lazyCSS.com

Right now it’s just a bare-bones site but I hope to flesh it out within the next week… month… year? One neat little feature I threw in there for this “alpha” version is that CSS properties are sorted alphabetically. If you have a vendor prefix, it ignores it. I hope to have the app remember settings between uses, automatically detect if the input is single or multi-line, and handle comments, and automatically collimate multi-line css.

July 12th, 2010 | Mental Note: Add Category | No comments