ThaiSEOBoard.com

พัฒนาเว็บไซต์ => Programming => ข้อความที่เริ่มโดย: pum_pam ที่ 22 กันยายน 2018, 15:41:51



หัวข้อ: เปลี่ยน url เว็บเป็น https ทำให้ cache google ขึ้น 404. That’s an error.
เริ่มหัวข้อโดย: pum_pam ที่ 22 กันยายน 2018, 15:41:51
รบกวนผู้รู้แนะนำเกี่ยวกับการปรับ เว็บ url เว็บเป็นแบบ https ทำไมพอปรับเสร็จแล้ว เอา url ไปค้นหาใน google แล้วคลิ๊กตรง แคชขึ้น

404. That’s an error.
The requested URL /search?q=cache:f5iJrDP_KW8J:https://www.xxx.com/+&cd=1&hl=th&ct=clnk&gl=th was not found on this server. That’s all we know.


 ไม่ทราบว่าต้องปรับแก้ code ที่ไหนคะ ถ้าโฮสเป็นวินโดว์ iis และเว็บเขียนเอง   ตรงเว็บ config ก็ได้ใส่ข้อมูลนี้ไปแล้วตามที่ค้นเจอข้อมูลใน google  รบกวนผู้แนะนำด้วยค่ะ 


<rule name="HTTPS force" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
</rule>   

ขอบคุณค่ะ