# HTTPS RewriteEngine OnRewriteCond %{HTTPS} offRewriteCond %{HTTP:X-Forwarded-Proto} !httpsRewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# To redirect all users to access the site without the www. prefix# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]# RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
« Mavzuga qaytish