AddType application/x-httpd-php .php .htm .html
Options -Indexes

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase /your_subdirectory/

	RewriteRule ^\.htaccess$ - [F]

	RewriteRule ^sitemap\.xml$ /your_subdirectory/sitemap.php [L]
	RewriteRule ^sitemap$ /your_subdirectory/sitemap.php [L]

	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule . /your_subdirectory/index.php [L]
</IfModule>