<VirtualHost *:80>
    #ServerAdmin admin@example.com
    ServerName qatarkarate.com
    ServerAlias www.qatarkarate.com
 #   ServerAlias qatarkarate.com.qa www.qatarkarate.com.qa
    DocumentRoot /home/jabir/qatarkarate.com/public
     
    <Directory /home/jabir/qatarkarate.com/public/>
            #Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
            #Require all granted
    </Directory>
     
    <Location />
       require all granted
    </Location>
    LogLevel info
    ErrorLog ${APACHE_LOG_DIR}/qatarkarate-error.log
    CustomLog ${APACHE_LOG_DIR}/qatarkarate-access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =qatarkarate.com [OR]
RewriteCond %{SERVER_NAME} =www.qatarkarate.com [OR]
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

#RewriteCond %{SERVER_NAME} =qatarkarate.com.qa [OR]
#RewriteCond %{SERVER_NAME} =www.qatarkarate.com.qa
#RewriteRule ^ https://qatarkarate.com%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
