4. mod_rewrite directives can go in the Apache config file (httpd.conf) or in an .htaccess file if I have to put them in httpd.conf, I usually make a separate file and include it Include rewrite_rules.conf
5.
6.
7. RewriteRule {pattern} {substitution} [{flags}] {pattern} is regular expression to match {substitution} is a string to replace that URL with. It can contain variables, reference parts of the {pattern}, or it can be the special “no substitution” string: - {flags} let you define behavior, like making the browser [R]edirect to the rewritten URL, telling the browser the page is [G]one, or returning a certain MIME [T]ype.
8. For a full list of RewriteCond and RewriteRule options, read the docs at: Get really nice “cheat sheets” you can print at:
9.
10. Search engines like “friendly” URLs. How else are they supposed to know index.php?postid=6 is a different page than index.php?postid=7 ?
11. Programs like WordPress and Drupal have support built-in. They'll even write the .htaccess for you. How sweet is that?
13. Say you change your CMS... Search engines have links, and users have bookmarks to pages in your old CMS. You don't want 404 Not Found errors when they visit those URLs again. So you use mod_rewrite to convert URLs in one format to another
14. Need More Info? There's a mod_rewrite tutorial at: This site not only has a tutorial, it has an active message board just about mod_rewrite: