Seting SSL ke WWW Gak bisa bisa.


Status
Not open for further replies.

mhdzakii

Apprentice 1.0
RCS itu nama hosting saya

hoo itu saya coba akses
SSL nya udah bagus, cuma tinggal auto redirectny saja belum
ini pakai WP?
boleh info SITE URL Di settingny -> generalnya sudah di set HTTPS?
saya baru sore ini selesai setting blog WP saya pakai HTTPS, jadi ketika visitor buka tanpa https, akan auto ke https
gimana nih kang? gimaca saran akang ni?
 

mas.satriyo

Hosting Guru
saya cuma pake ini aja

Code:
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=302]

tapi bukan wordpress sih, pake nya pagekit
kalo mau tes domainnya
dapurarza[dot]com
 

junior riau

Hosting Guru
Verified Provider
htaccess saya

Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^/?(.*) http://www.%{HTTP_HOST}/$1 [NC,R,L] <-- redirect to WWW
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/?(.*) https://%{HTTP_HOST}/$1 [NC,R,L] <--- redirect to HTTPS
</IfModule>
# END WordPress
 

junior riau

Hosting Guru
Verified Provider
htaccess saya

Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^/?(.*) http://www.%{HTTP_HOST}/$1 [NC,R,L] <-- redirect to WWW
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/?(.*) https://%{HTTP_HOST}/$1 [NC,R,L] <--- redirect to HTTPS
</IfModule>
# END WordPress

Try access

Plugin Installed
1. SSL Insecure Content Fixer <-- fix url (source link) to https
2. Wordpress Force HTTPS <- force to https
 

mhdzakii

Apprentice 1.0
RCS itu nama hosting saya

hoo itu saya coba akses
SSL nya udah bagus, cuma tinggal auto redirectny saja belum
ini pakai WP?
boleh info SITE URL Di settingny -> generalnya sudah di set HTTPS?
saya baru sore ini selesai setting blog WP saya pakai HTTPS, jadi ketika visitor buka tanpa https, akan auto ke https
gimana nih kang? gimaca saran akang ni?
htaccess saya

Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^/?(.*) http://www.%{HTTP_HOST}/$1 [NC,R,L] <-- redirect to WWW
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/?(.*) https://%{HTTP_HOST}/$1 [NC,R,L] <--- redirect to HTTPS
</IfModule>
# END WordPress

Try access

Plugin Installed
1. SSL Insecure Content Fixer <-- fix url (source link) to https
2. Wordpress Force HTTPS <- force to https

kemaren orang namecheap kasih kayak gini doang kang, https://cryptbin.com/MTs#27346354d999dc354e6bb9584aa18e66 benar gak ini? soalnya ssl nya udah di setting www dari awal, di reissue maksudnya, kalau plugin contect fixer saya tau kang, udah pake, yang kedua itu belum tuh.
 

mhdzakii

Apprentice 1.0
saya cuma pake ini aja

Code:
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=302]

tapi bukan wordpress sih, pake nya pagekit
kalo mau tes domainnya
dapurarza[dot]com
gak bisa di akses kang, lebih bagus mana pagekit sama wp kang? dan cara optimasi seo nya gimana tuh?
 
Status
Not open for further replies.

Top