Redirect all request to https://www.


Status
Not open for further replies.

bukithosting

Poster 2.0
Mohon bantuan tuan2 master DWH

.htaccess yg saya gunakan =

Code:
RewriteEngine on

    RewriteCond %{HTTPS} !^on$
    RewriteRule (.*) https://www.example.com/$1 [R,L]

    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule /?([A-Za-z0-9_-]+).html$ index.php?id=$1 [QSA,L]

masalah terjadi ketika request masuk dengan = https://domain.com >>> https://www./

Mohon di jelaskan agar all request yang masuk redirect to https://www.domain.com
untuk mengganti kekurangan code diatas... terima kasih
 
Status
Not open for further replies.

Top