Hy all again
I have:
so here are my htaccess file
DirectoryIndex index.html index.php
AddEncoding gzip .gz RewriteCond %{REQUEST_FILENAME} \.(js|css)$ RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{REQUEST_FILENAME}.gz -f RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ $1.gz [QSA,L]
RewriteEngine on # Please note that RewriteBase setting is obsolete use it only in case you experience some problems with SEO addon. # Some hostings require RewriteBase to be uncommented # Example: # Your store url is http://www.yourcompany.com/store/cart # So "RewriteBase" should be: # RewriteBase /store/cart # RewriteBase / RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Options -MultiViews
ExpiresActive On ExpiresDefault "access plus 10 years" Header unset ETag FileETag None Header set Connection keep-alive Header append Vary User-Agent Header append Vary: Accept-Encoding Header append Cache-Control public Header unset ETag FileETag None Header set Connection keep-alive Header append Vary User-Agent Header append Vary: Accept-Encoding Header append Cache-Control public RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^(.*\.(ico|gif|jpg|jpeg|png|swf|js|css|html?|xml|txt|pdf))$ smartoptimizer/?$1 ForceType text/css Header set Content-Encoding: gzip Header set Cache-control: privateHeader unset ETag FileETag None ExpiresActive On ExpiresDefault "access plus 1 year" ForceType text/javascript Header set Content-Encoding: gzip Header set Cache-control: privateHeader set Access-Control-Allow-Origin "*" RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]RewriteCond %{REQUEST_URI} ^api/(.)$ [or]
RewriteCond %{REQUEST_URI} ./api/(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
RewriteRule .api/(.)$ api.php?_d=$1&ajax_custom=1 [L,QSA]RewriteCond %{REQUEST_URI} .(png|gif|ico|swf|jpe?g|js|css|ttf|svg|eot|woff|yml|xml)$ [or]
RewriteCond %{REQUEST_URI} store_closed.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.?)/(.)$ $2 [L]RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?:\ Comodo\ DCV)?$
RewriteRule . index.php [L,QSA]php – BEGIN cPanel-generated handler, do not edit
NOTE this account’s php is controlled via FPM and the vhost, this is a place holder.
Do not edit. This next line is to support the cPanel php wrapper (php_cli).
AddType application/x-httpd-ea-php56 .php .phtml
php – END cPanel-generated handler, do not edit
I now, everythings redirects to https pages... and i want to remain that
But i want an exception for my alias domain2.com ...that is without https and can`t be
Obvious domain1.com it is Cscart 4.2.4
So.. http://www.domain2.com that without SSL i want to be ALIAS for https://www.domain1.com