KLoning Spoon

ModRewrite is a powerful feature of the Apache web server. It provides an easy way to modify/manipulate URLs. As complicated as it sounds a regular webmaster can benefit from this feature in many way. I will list here the ones I consider most useful for the regular webmaster.

Create easy to remember URLs or also known as COOL URIs, other call them Search Engine Friendly URLs. For example you have some complicated site driven by some server-side scripting language: PHP, Perl, etc. In general its URLs will look like

It is not easy to remember such URL.

Using ModRewrite you can make the URL look like:

Here is the code:

RewriteEngine On
RewriteRule    ^([a-z]*)/([a-z]*)/([1-9]+)(-[1-9]+)? $  http://www.example.com/view.php?cat=$2&a=$3&page=$4&lang=$1    [L]

What the code does? It tries to match the requested URL against a regular expression string.
In case it finds a match it performs an internal rewrite. The user will never see the long URL in his browser.

The Specials Board theme includes .seestyle files for all programming  languages that Coda supports out of the box. Not just Ruby, PHP, XHTML, CSS and the others referenced in the demo screencaps, but ASP, Python, Smarty, Action Script, Java and all the others.

The Specials Board theme includes .seestyle files for all programming languages that Coda supports out of the box. Not just Ruby, PHP, XHTML, CSS and the others referenced in the demo screencaps, but ASP, Python, Smarty, Action Script, Java and all the others.

mod_geoip2 is an Apache 2.x module for finding the country and city
that a web request originated from.  It uses the GeoIP library and
database to perform the lookup