[ home | files | links | topics | stickers | about ]

Todays Stats

Visitors: 142
Referrers: 13
User Agents: 54
Pages Served: 414
Total Pages



mod_rewrite: URL modification
programming : by Corey - October 2nd 2010, 07:22AM
To say that there is extensive documentation on Apache and its various plugins, including mod_rewrite, is to grossly understate the term. Documentation is voluminous to the point of beginning to wonder if the various authors had a combined total of more than five dates with actual girls in the history of their lives.

Disgruntled, then, was I to discover that on the entirety of the Internet, there was no documentation surrounding what I needed to accomplish. I've since come to realize that this is likely due to the obscurity of the issue or the availability of other commonly known tools to accomplish the task I had before me.

That task: Rewriting and redirecting a URL from my local environment using Apache and mod_rewrite.

Without delving into specifics, I needed to take an HTTP request generated by a page viewed in my browser and direct that request to another location, including a change of domain.

Now, the more seasoned among you may resolve that the very purpose of mod_alias is to perform this task. However, just because I'm a glutton for punishment, in this particular case, I also need to change the value of a query string parameter in the URL having its domain changed. Gaze upon the domain of mod_rewrite, ye mighty, and despair.

While mod_alias is designed to handle the translation of domains, mod_rewrite is designed to handle that and query string parameters (as well as a bunch of other stuff that I have no idea about). Before we can start directing URLs to and fro, we must first setup Apache.

I'll not regale the reader with the riveting tale of that process as it is rather well (and usefully) documented. The mod_rewrite module must be included in httpd.conf and the Apache instance must be configured to run as on port 80. Do be wary of configuring the server value as localhost because sometimes the value does not translate, especially in Windows.

Continue reading...

tags: Apache mod_rewrite URL modification redirection cake pie howto

( Comments : 1 | Full article )

Facebook: it was inevitable.
rant : by Corey - July 20th 2009, 08:20PM
Facebook has exploded in the last twelve months. Leaving MySpace, Orkut, and the rag tag group of other social networking sites in the dust, it has single handedly surmounted the world of telling everyone everything regardless of whether or not they actually wanted to know. Only Twitter is able to stave off the blitzkrieg of Facebook, and then only because stupid people haven't figured out how awful it is.

I joined Facebook a few months ago at the incessant urging of small people from Scandinavia. Upon further inspection, I acquiesced to the request because Facebook looked like MySpace without the dumb. It was friends connected to other friends and there was some writing of stuff back and forth. It had a pretty clean interface and, minus the AJAX fetish that seems to permeate the site, it works pretty well.

Oh my, how wrong I was.

You see, on Facebook lies the concept of applications. These applications are about as varied as they come, but they all share one defining feature: they are all completely stupid.

Share a round of drinks! Send a hug! Give a smile! Take a quiz! Become a fan of crab people! Most of this crap isn't even possible, much less a passing excuse for social interaction. Never in all my life have I been more thankful for the, "block this application" feature than I am with Facebook.

Sure, Facebook is a lot less intrusive than MySpace, and certainly looks less like a drunk monkey vomited all over my computer screen than MySpace, but it is still sheer crap.

In a clean package.

tags: Facebook Apps Lame Pie

( Comments : 2 | Full article )


-+- neodux blog -+-
Page generated for in 0.03073 seconds.
rss 2.0 feed