mod_rewrite

Hi guys. Could somebody please write a .htaccess file for me that does the following. I’ve tried many different things but always seem to produce a 500 error or it doesn’t quite do what I want. Your help is very much appreciated.

  1. Forces the www. if a user browses to domain.com
  2. Redirects www.domain.com to www.domain.com/home
  3. Rewrites value to ?p=value (e.g. www.domain.com/home rewrites to www.domain.com/?p=home)
  4. Redirects all 404’s to www.domain.com/home
Sponsor our Newsletter | Privacy Policy | Terms of Service