diff --git a/.htaccess b/.htaccess index ff88301..3ceb880 100644 --- a/.htaccess +++ b/.htaccess @@ -2,10 +2,11 @@ RewriteEngine on RewriteBase / Options +MultiViews +AddType application/x-httpd-php .php RewriteCond %{HTTP_HOST} ^www\.webtypography\.net$ RewriteRule (.*) http://webtypography.net/$1 [R=Permanent] RewriteRule ^.+/([0-9]+\.[0-9]+\.[0-9]+)$ $1 [R=Permanent] RewriteRule ^.+/([0-9]+\.[0-9]+\.[0-9]+)/$ $1 [R=Permanent] -RewriteRule ^([0-9]+\.[0-9]+\.[0-9]+)$ item.php?item_num=$1 \ No newline at end of file +RewriteRule ^([0-9]+\.[0-9]+\.[0-9]+)$ item.php?item_num=$1 diff --git a/README.md b/README.md index b8da1b3..1e990ee 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ The markup still holds up but you might consider the CSS to be a bit... 2005. Th The site runs on PHP and probably requires PHP 5 to be safe (although I suspect PHP 4 will work just fine too). That's all really. Just download the zip into a folder and set yourself up with a virtual host and you're away. If you want the webfonts to work, you'll need to use the domain "webtypography.dev" as your virtual hostname. +The expectation is that the site will be served by Apache or something that understansd the .htaccess file in the root. This requires mod_rewrite and mod_negotiation to be enabled in order to route requests appropriately. + ## Adding new items The site builds upon the individual guidelines written in Bringhurst's book. To add a new guideline, you should add an entry in the PHP array in `/includes/data.inc.php` and then create an HTML file with the main content in the `/items` folder.