# Forzar HTTPS por PremiumHosting
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Forzar HTTPS por PremiumHosting

<IfModule mod_rewrite.c>
php_flag output_buffering on
</IfModule>

#<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteBase /

#RewriteCond %{ENV:HTTPS} !=on
#RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

# BEGIN WordPress
#<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteBase /
#RewriteRule ^index\.php$ - [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /index.php [L]
#php_flag output_buffering on
#</IfModule>

# END WordPress

# php -- BEGIN cPanel-generated handler, do not edit
# This domain inherits the “PHP” package.
# php -- END cPanel-generated handler, do not edit

RewriteCond %{HTTP_REFERER} !^http://conactiv.cl/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://conactiv.cl$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.conactiv.cl/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.conactiv.cl$      [NC]
RewriteCond %{HTTP_REFERER} !^https://conactiv.cl/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://conactiv.cl$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.conactiv.cl/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.conactiv.cl$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

AuthType Basic
AuthName "public_html"
AuthUserFile "/home/conactiv/.htpasswds/public_html/passwd"
require valid-user
