ورسل ملف htaccess سؤال وجواب
ملف دومين فرعي
RewriteEngine On
### START WWW & HTTPS
# ensure www.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?alabid.\.com$ [NC]
RewriteRule ^(.*)$ https://ar.alabid.com/$1 [L,R=301]
# ensure https
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>
<Files 403.shtml>
order allow,deny
allow from all
</Files>
تعليقات
إرسال تعليق