﻿# Don't show directory listings for URLs which map to a directory.
# secure .htaccess file
<Files .htaccess>
 order allow,deny
 deny from all
</Files>


# Simple 404 for missing files
<FilesMatch "(\.jpe?g|gif|png|bmp)$">
  ErrorDocument 404 "File Not Found"
</FilesMatch>

Options +FollowSymLinks 
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} !^www.sunenergies.ro$ [NC]
RewriteRule ^(.*)$ https://www.sunenergies.ro/$1 [L,R=301]

# Incepe comanda pt. mod-rewrite 

