« Confessions of a Book Addict | Main | Error-Free Errors »
June 13, 2003
Server Madness!!!
So, my "other" job is being the IGDA's webmaster (the one I do from midnight to 3am). Along with the help of some <a href="http://www.igda.org/about/colophon.php">nice people</a>, I pretty much built and designed the entire IGDA web site and backend db functionality. Anyway.
This means I get to go crazy figuring out Apache/Unix level stuff that I am so clueless about. I've been working on building a user friendly 404 error page (for example, this page comes up when you request a <a href="http://www.igda.org/xxx">non-existant page</a>). So, that works ok, but now I also want to do error trapping on the missing pages and referring pages to help fix the errors (FYI, our error page is the 3rd most viewed page at the site :(
Here's <a href="http://www.onlamp.com/pub/a/onlamp/2003/02/13/davidsklar.html">what I want to do</a>, actually, but I am running into problems with relative paths in my ErrorDocument directive in the site's .htaccess file.
Sorry to bore about all the webby stuff, but if any one is really good with Apache stuff (on a virtual/shared host), please <a href="mailto:jason@igda.org">pop me an email</a>.
Posted by della at June 13, 2003 01:15 AM
Trackback Pings
TrackBack URL for this entry:
http://www.igda.org/cgi-sys/cgiwrap/cgda/mt/mt.cgi/mt-tb.cgi/10
Comments
Glad we're not the only ones - the 404 page is about the fifth most viewed on Machinima.com...
BTW, are you using RewriteRules, or something more cunning?
Posted by: Hugh "Nomad"Hancock at June 14, 2003 11:54 AM
Shouldn't I be on that Nice People list? :)
Anyway, the real reason I'm writing is to say, for faster performance you could have Apache rewrite the URL's directly instead of sending it to PHP.
For instance... In this example they are rewriting things like this:
'/old/1' => '/new/2.html','/old/2' => '/new/3.html'
With mod_rewrite You can do it in 1 line
RewriteRule ^/old/([0-9]+)[\/]?$ /new/$1.html [L]
Tricky stuff, but much faster and much more powerful.
Posted by: Chris at June 14, 2003 12:00 PM