# Rewrite - clean urls # # ... -> Checks to see if the rewrite is installed; if not, it will not run # RewriteRule ^(.*)/?$ fruit.php?page=$1 [QSA,L] -> the rule for how to rewrite # ^([^/]*)/?$ is the matching string # fruit.php?page=$1 is the string to convert it too, $1 is the string captured by (.*) in the matching # [QSA,L] -> pass along any parameters that were passed in get and also this is the last (exit) command RewriteEngine On RewriteRule ^([^/]*)/?$ fruit.php?page=$1 [QSA,L]