จะ redirect ไป https เขียน .htaccess แล้ว มันไม่ยอม redirect ครับ

เริ่มโดย OXYGEN2, 26 มกราคม 2016, 02:04:04

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

OXYGEN2

.htaccess

ผมเพิ่มไปว่า

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


ผม copy มาจากเว็บที่ Host อื่น เขียน .htaccess แบบนี้มัน redirect เข้า https เองเลย

แต่ทำไมเว็บที่ผมทำใหม่ ใช้ VPS กับ Plesk Control Panel และซื้อ SSL แล้ว มันไม่ยอม redirect ให้ครับ

Putter™

ต้องมี 301 redirect ด้วยหรือเปล่าครับ

RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
[direct=https://hostings.ruk-com.in.th]Ruk-Com Hosting (IAAS)[/direct]
[direct=https://ruk-com.cloud]Ruk-Com Cloud (PAAS)[/direct]
รีวิวโฮสติ่ง Ruk-Com  จากสมาชิก THAISEO

ไม่พอใจยินดีคืนเงินเต็มจำนวนทุกบริการ


OXYGEN2

ตอนนี้ใส่ไปแบบนี้ ผิดหรือเปล่าครับ ยังไงมันก็ไม่ redirect งงมาเลยครับ ทั้งๆ ที่เคยใช้ใน Shared Host เจ้าอื่นใส่ไปมันก็ redirect ให้เลย


darkknightza

[direct=http://make-more-moneyy.blogspot.com/2012/10/adfly.html]หาเงินวันละ350บาท มั่นคง จ่ายมาสิบปีแล้ว[/direct]
[direct=https://www.popads.net/users/refer/519628]หารายได้กับ popup เจ้านี้ เรทแรงคลิ๊ก[/direct]
Hosting อันดับ 1 คุณภาพสูง ราคาถูก จัดเลย[direct=https://support.hostneverdie.com/aff.php?aff=504][/direct]
โดเมนเนมสวยๆ ราคาถูก จดกับเราสิ[direct=https://my.thaidatahosting.com/aff.php?aff=227]ที่นี่

nuonly

[direct=https://www.duduang.in.th]ดูดวง[/direct][direct=https://www.duduang.in.th]duduang[/direct] [direct=https://www.ddbaanteedin.com]ขายที่ดิน[/direct] [direct=https://www.ddbaanteedin.com/]ขายบ้าน[/direct]

HostSevenPlus

แบบนี้ได้ไหมคับ

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}:443%{REQUEST_URI}
Hostsevenplus.com | จดทะเบียนถูกกฎหมาย |กะรันตี 10 ปีแห่งบริการเว็บโฮสติ้ง | พร้อมบริการตลอด 24 ชั่วโมง
Web Hosting | VPS Hosting | Reseller Hosting | Domain Name | Cloud Server | SSL Certificates
█ เลือกVersion PHPได้| สะดวกชำระหลายช่องทาง 7-ELEVEN/BiGC/Lotus/PaySbuy/PayPal&Credit Card
โทรศัพท์:0-80523-7840 | Line: @hostsevenplus| Email : [email protected]


nuonly

อ้างถึงจาก: HostSevenPlus ใน 04 พฤษภาคม 2016, 16:52:14
แบบนี้ได้ไหมคับ

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}:443%{REQUEST_URI}

ได้ครับ แต่หน้าอื่นๆเข้าไม่ได้ เข้าแล้ว eror ครับ
[direct=https://www.duduang.in.th]ดูดวง[/direct][direct=https://www.duduang.in.th]duduang[/direct] [direct=https://www.ddbaanteedin.com]ขายที่ดิน[/direct] [direct=https://www.ddbaanteedin.com/]ขายบ้าน[/direct]

icez

[direct=http://www.thzhost.com/]THZHost[/direct] SSD Hosting ไทย/สิงคโปร์ พร้อม firewall ป้องกันการยิงเว็บ + scan ไวรัสในเว็บ

kuzawara


nong4534

Rangforever แจกโค้ดตัวอย่างโปรเจคPHPฟรี(เขียนโปรแกรมphp java C#)
PHP Future เขียนโปรแกรมภาษาphp (แจกโปรเจคฟรี แหล่งเรียนรู้ไอที เทคโนโลยี)

icez

อ้างถึงจาก: kuzawara ใน 04 พฤษภาคม 2016, 20:59:56
ไม่ได้ผลครับ  :wanwan023:
ไม่ได้ผลยังไงเหรอครับ ไม่ยอม redirect หน
รือ redirect ไปแล้วพัง ??
[direct=http://www.thzhost.com/]THZHost[/direct] SSD Hosting ไทย/สิงคโปร์ พร้อม firewall ป้องกันการยิงเว็บ + scan ไวรัสในเว็บ

ziidan

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteCond !{HTTPS} off
RewriteRule ^(.*)$ [url]https://www.%{HTTP_HOST}%{REQUEST_URI}[/url] [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ [url]https://www.%{HTTP_HOST}%{REQUEST_URI}[/url] [L,R=301]

</IfModule>


ลองดูครับ