http://xxx.s500.xrea.com/index.php?p=0001 というURLを http://xxx.s500.xrea.com/0001.html という形式で呼び出したいと思ったので .htaccess にこう書いてみた。
RewriteEngine on RewriteBase / RewriteRule ^([0-9A-Za-z]+).html?$ /index.php?p=$1 [L]