RewriteEngine on RewriteRule sitemap\.txt$ sitemap.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php [L,QSA] RewriteRule (\.pg|\.pgc[1-9]|\.mn)$ [F] ErrorDocument 404 index.php?page=error/404&lang=cs ErrorDocument 403 index.php?page=error/403&lang=cs