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$ book.php?p=$1 [L]

RewriteRule ^feed.xml$ plugins/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>

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_flag display_errors On
   php_value max_execution_time 1080
   php_value max_input_time -1
   php_value max_input_vars 10000
   php_value memory_limit 1024M
   php_value post_max_size 100M
   php_value session.gc_maxlifetime 14400
   php_value session.save_path "/var/cpanel/php/sessions/ea-php73"
   php_value upload_max_filesize 100M
   php_flag zlib.output_compression On
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors On
   php_value max_execution_time 1080
   php_value max_input_time -1
   php_value max_input_vars 10000
   php_value memory_limit 1024M
   php_value post_max_size 100M
   php_value session.gc_maxlifetime 14400
   php_value session.save_path "/var/cpanel/php/sessions/ea-php73"
   php_value upload_max_filesize 100M
   php_flag zlib.output_compression On
</IfModule>
# END cPanel-generated php ini directives, do not edit

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