RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f


RewriteRule    ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)$    $1.php?p=$2  [NC,L]    # add .php on the end, then whatevers after the second slash is added as the argument on the get[m] var
RewriteRule    ^([A-Za-z0-9-]+)$    $1.php  [NC,L]    # Just add .php on the end.


## Custom 500 error
ErrorDocument 500 http://www.orpendesignsolutions.com/

ErrorDocument 404 /404.php

