I asked this question on stackoverflow.com: http://stackoverflow.com/questions/8466321/apache-rewrite-rule-for-all-pages-after-domain-name Sorry for redirecting, but I wasn't aware of webmasters.stackoverflow and wasn't sure if I should repost it here or just link to it to prevent duplication.