RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [NE,L,R=301]
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,L,R=301]

RewriteRule ^([a-zA-Z0-9\s.,%/+_-]*).html$ /anunturi/load.php?page=$1 [L]

RewriteRule ^activare.html$ /anunturi/load.php?page=activare$1 [L]

RewriteRule ^feed.xml$ /anunturi/apps/feed.php [L]

<IfModule mod_deflate.c>
# Filtre de Optimizare
SetOutputFilter DEFLATE
<IfModule mod_setenvif.c>
# Netscape 4.x are cateva probleme…
BrowserMatch ^Mozilla/4 gzip-only-text/html
 
# Netscape 4.06-4.08 are ceva probleme
BrowserMatch ^Mozilla/4.0[678] no-gzip
 
# MSIE masquerades de la Netscape si el cu ceva probleme
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
 
# Imagini
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
</IfModule>
 
<IfModule mod_headers.c>
# Optiuni proxy pentru continut
Header append Vary User-Agent env=!dont-vary
</IfModule>
</IfModule>