Updated for mod_rewrite support

Useful when deploying Wordpress which uses the module for user-friendly
urls