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


thxf.org

วิธีการทํา 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:
 

กระทู้ที่คล้ายกัน

Redirection Script for phpBB 3.2/3.3+ (without SEO URLs) htaccess สคริปนี้ต้องเปิดใช้ระบบ friendly urls ในตัว Xenforo ด้วยครับ. ทำงานอย่างไร "/viewforum.php?f=X" รีไดเร็กเป็น "/forums/X/" และ...
ตอบกลับ
0
จำนวนการดู
15พัน
เปิดไฟล์ .htaccess ขึ้นมาแล้วเพิ่ม เข้าไปตามนี้ แล้ว save จากนั้นทดสอบเปิด browser ดูครับ :th_113_:
ตอบกลับ
0
จำนวนการดู
1พัน
thxf.org 
วิธีการทํา Redirect IPS 4.x URLs to XenForo 2.x
ตัวอย่าง 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 ...
ตอบกลับ
0
จำนวนการดู
1พัน
thxf.org 

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