Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 01-07-2022, 10:35 AM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Hướng dẫn redirect www to non-www
How to redirect www to none www

Hướng dẫn cấu hính chuyển hướng từ www qua không có www


Cách 1: Trong web.conf bạn thêm dòng sau


Mã:

<rewrite>
<rules>
  <rule name="Redirect to www" stopProcessing="true">
      <match url="(.*)" />
      <conditions trackAllCaptures="false">
        <add input="{HTTP_HOST}" pattern="^domain.com$" />
      </conditions>
      <action type="Redirect" url="{MapProtocol:{HTTPS}}://www.domain.com/{R:1}" />
  </rule>
</rules>
</rewrite>
Cách 2:


Tham khảo: https://www.namecheap.com/support/kn...http-to-https/


https://qawithexperts.com/article/as...-vice-vers/342


  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời


Công Cụ
Xếp Bài

Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 01:43 AM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.