กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see


thxf.org

How To Redirect to HTTP non-www to HTTPS www ด้วย .htaccess

เพิ่มข้อความด้านล่างในไฟล์ .htaccess :
HTML:
RewriteEngine On

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

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]
ด้านล่างคือเชค https กับ redirect none www to www:
HTML:
RewriteEngine On

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

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]
:5fc0f220:
 


Similar threads

Redirection Script for phpBB 3.2/3.3+ (without SEO URLs) htaccess สคริปนี้ต้องเปิดใช้ระบบ friendly urls ในตัว Xenforo ด้วยครับ. ทำงานอย่างไร "/viewforum.php?f=X" รีไดเร็กเป็น "/forums/X/" และ...
Replies
0
Views
15K
thxf.org 
เปิดไฟล์ .htaccess ขึ้นมาแล้วเพิ่ม เข้าไปตามนี้ แล้ว save จากนั้นทดสอบเปิด browser ดูครับ :th_113_:
Replies
0
Views
1K
thxf.org 
ตัวอย่าง url ของ IPS4 : example.com/topic/12345-hello-world/ ตัวอย่าง url xenforo 2.x : example.com/threads/hello-world.12345/ for redirect all url of threads , user profile pages , forum urls ...
Replies
0
Views
1K
thxf.org 

กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see
Back
Top Bottom