RewriteEngine On
RewriteRule ^p/([a-z0-9A-Z]+)/?$ index.php?p=$1	[L]

