mezzoblue/csszengarden.com — pull request #57 by eyesofjeremy (2013-07-10 17:00:17+00:00)
Title: Mod rewrite

Hi Dave,

This is beginning to shape up nicely. This is working on my dev server for the following:
* ?cssfile=/003/003.css&page=5 --> **/003/page5/**
* ?cssfile=/003/003.css --> **/003/**
* ?cssfile=/001/001.css&page=5 --> **/page5/**
* /192 --> **/192/** *(adds trailing slash)*
* /examples/index --> *(downloads file)*
* /examples/style.css --> *(downloads file)*

To do:
* /001/ --> **/** *(remove number of main design—see [2] below)*
* // --> **/** *(remove double slash—nothing links to this but still)*

[1] The htaccess file has my server active—you will need to change lines there to work on the production server correctly. (Alternately, I can do that on my end)

[2] The work here assumes that you want `csszengarden.com/001/` to just go to `csszengarden.com/`. Or, with some changes, for whichever design you consider the current starting point for the site (so, perhaps 214). If that assumption is correct, I think a little more tweaking is in order so that we would only have two places in the code to change—one would be .htaccess, and the other should be one global variable which is used where needed.