RewriteEngine On
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} /$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index\.html  !-f
RewriteCond %{REQUEST_FILENAME}/index\.xhtml !-f
RewriteCond %{REQUEST_FILENAME}/index\.php   !-f
RewriteRule ^(.*)$ sindex.php?p=$1