Godaddy ตั้งค่าให้โดเมนแสดง url มี www.นำหน้ายังไงหรอครับ
รบกวนผู้รู้ช่วยทีนะครับ :wanwan017: ขอบคุณครับ
มัน set ที่ domain ไม่ได้นะผมว่า
ต้องเซ็ตที่ตรงไหนหรอครับ ผมไม่รู้จริงๆ :'(
น่าจะใช้ไฟล์ .htaccess ช่วยนะครับ
คุ้นๆ เคยเห็นกระทู้ในบอร์ด ต้องลองไปหาดูก่อน
# Open the original .htaccess you downloaded in Notepad
# Add the following code (in red) into the .htaccess file. Be sure to substitute "example.com" with your own website information but touch nothing else.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
อ้างถึงจาก: munamibaba ใน 09 กันยายน 2010, 01:35:53
# Open the original .htaccess you downloaded in Notepad
# Add the following code (in red) into the .htaccess file. Be sure to substitute "example.com" with your own website information but touch nothing else.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
ตามนี้เลย
มันต้องทำที่ตัวโฮสอะครับ DNS ไม่ใช่ทำที่ตัวโดเมน
อ้างถึงจาก: NaiTan ใน 13 กันยายน 2010, 00:41:12
มันต้องทำที่ตัวโฮสอะครับ DNS ไม่ใช่ทำที่ตัวโดเมน
ตามนี้ครับ ลองดูที่ control panel โฮสคุณครับ
เข้าไปตรง domain manager เเล้วตรง Forwarding กด manage ประมานเละครับ
จดโดเมนที่ godaddy ปกติ ก้ แสดง www นำหน้าอยู่แล้วน่ะครับ
ของผมเป็นแบบนี้ครับ domain manager-->total dns control-->Cnames-->www--> point to @
หากใช้ Webmaster Tool ของ Google อยู่ ทำได้ง่ายๆเพียงไม่กี่คลิกครับ
Login เข้าไป > Site Configuration > Settings > Preferred domain > เลือกตัวเลือก Display URLs as www.YOURWEBSITE.com (http://www.yourwebsite.com)
ลองดูครับ