<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.pathosting.co.th/index.php?action=history&amp;feed=atom&amp;title=SITEURL_%28Wordpress%29</id>
	<title>SITEURL (Wordpress) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.pathosting.co.th/index.php?action=history&amp;feed=atom&amp;title=SITEURL_%28Wordpress%29"/>
	<link rel="alternate" type="text/html" href="https://kb.pathosting.co.th/index.php?title=SITEURL_(Wordpress)&amp;action=history"/>
	<updated>2026-04-07T06:05:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://kb.pathosting.co.th/index.php?title=SITEURL_(Wordpress)&amp;diff=420&amp;oldid=prev</id>
		<title>Admin at 09:41, 1 June 2011</title>
		<link rel="alternate" type="text/html" href="https://kb.pathosting.co.th/index.php?title=SITEURL_(Wordpress)&amp;diff=420&amp;oldid=prev"/>
		<updated>2011-06-01T09:41:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:41, 1 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== วิธีแก้ไขโดยแก้ไขไฟล์ wp-config.php ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== วิธีแก้ไขโดยแก้ไขไฟล์ wp-config.php ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ให้เพิ่มคำสั่งประกาศค่าคงที่ 2 บรรทัดนี้เข้าไปในไฟล์ wp-config.php&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ให้เพิ่มคำสั่งประกาศค่าคงที่ 2 บรรทัดนี้เข้าไปในไฟล์ wp-config.php&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  define(&amp;quot;WP_HOME&amp;quot;,&amp;quot;http://www.your-domain.com&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  define(&amp;quot;WP_HOME&amp;quot;,&amp;quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;nowiki&amp;gt;&lt;/ins&gt;http://www.your-domain.com&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/nowiki&amp;gt;&lt;/ins&gt;&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  define(&amp;quot;WP_SITEURL&amp;quot;,&amp;quot;http://www.your-domain.com&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  define(&amp;quot;WP_SITEURL&amp;quot;,&amp;quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;nowiki&amp;gt;&lt;/ins&gt;http://www.your-domain.com&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/nowiki&amp;gt;&lt;/ins&gt;&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;u&amp;gt;หมายเหตุ&amp;lt;/u&amp;gt;: ให้เปลี่ยน your-domain.com ในคำสั่งตัวอย่างนี้ เป็นชื่อโดเมนเนมใหม่ของบล๊อคด้วย.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;u&amp;gt;หมายเหตุ&amp;lt;/u&amp;gt;: ให้เปลี่ยน your-domain.com ในคำสั่งตัวอย่างนี้ เป็นชื่อโดเมนเนมใหม่ของบล๊อคด้วย.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://kb.pathosting.co.th/index.php?title=SITEURL_(Wordpress)&amp;diff=230&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;category:Wordpress เวลาคุณเปลี่ยนโดเมนเนมที่ใช้กับโฮสติ้ง แล้วไม่สามารถ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.pathosting.co.th/index.php?title=SITEURL_(Wordpress)&amp;diff=230&amp;oldid=prev"/>
		<updated>2010-10-27T23:29:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/Category:Wordpress&quot; title=&quot;Category:Wordpress&quot;&gt;category:Wordpress&lt;/a&gt; เวลาคุณเปลี่ยนโดเมนเนมที่ใช้กับโฮสติ้ง แล้วไม่สามารถ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[category:Wordpress]]&lt;br /&gt;
เวลาคุณเปลี่ยนโดเมนเนมที่ใช้กับโฮสติ้ง แล้วไม่สามารถเข้า Wordpress ได้ เพราะพอเปิดขึ้นมาแล้วมันก็จะ Redirect กับไปที่โดเมนเนมเก่าอีก ซึ่งมันใช้ไม่ได้แล้ว. ที่เป็นเพราะ Wordpress จะมีการเก็บค่า Site URL ไว้ในฐานข้อมูลด้วย (สามารถตั้งได้ที่เมนู Settings &amp;gt; General) ถ้ามีการเปิด Wordpress แต่โดเมนที่ URL ไม่ตรงกับที่ Wordpress เก็บไว้ Wordpress ก็จะ Redirect ไปที่ URL ที่กำหนดไว้ในฐานข้อมูล.&lt;br /&gt;
&lt;br /&gt;
วิธีแก้ไข เนื่องจากเราไม่สามารถที่จะเข้าไปแก้ไขใน '''/wp-admin/''' ได้แล้ว, เพราะว่ามันเข้าตัว wp-admin/ ไม่ได้เช่นกัน ดังนั้นทางแก้จะมีอยู่ 2 ทาง คือ&lt;br /&gt;
# เข้าไปแก้ข้อมูลที่อยู่ในฐานข้อมูลผ่าน [[phpMyAdmin]]&lt;br /&gt;
# แก้ไขไฟล์ wp-config.php&lt;br /&gt;
&lt;br /&gt;
== วิธีแก้ไขโดยแก้ไขไฟล์ wp-config.php ==&lt;br /&gt;
ให้เพิ่มคำสั่งประกาศค่าคงที่ 2 บรรทัดนี้เข้าไปในไฟล์ wp-config.php&lt;br /&gt;
 define(&amp;quot;WP_HOME&amp;quot;,&amp;quot;http://www.your-domain.com&amp;quot;);&lt;br /&gt;
 define(&amp;quot;WP_SITEURL&amp;quot;,&amp;quot;http://www.your-domain.com&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;หมายเหตุ&amp;lt;/u&amp;gt;: ให้เปลี่ยน your-domain.com ในคำสั่งตัวอย่างนี้ เป็นชื่อโดเมนเนมใหม่ของบล๊อคด้วย.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>