www.site.uz ni http://site.uz ga redirect qilish kodi shunday yoziladimi?
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.www)\.sayt\.uz$ [NC]
RewriteRule ^ http://sayt.uz [L,R]Мен ишлатаётганим
Kod · PHP
HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]