RewriteEngine on

ErrorDocument 400 /index.php?page=error
ErrorDocument 403 /index.php?page=error
ErrorDocument 404 /index.php?page=error
ErrorDocument 500 /index.php?page=error

RewriteBase /
RewriteRule ^([a-z]+)\.html$ index.php?page=$1 [L]

RewriteCond %{HTTPS} off
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^e\-cmr\.xaa\.pl$ [OR]
RewriteCond %{HTTP_HOST} ^www\.e\-cmr\.xaa\.pl$
RewriteRule ^/?$ "https\:\/\/e\-cmr\.pl\/" [R=301,L]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php56” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-alt-php56___lsphp .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
