{"id":4363,"date":"2018-03-09T08:31:22","date_gmt":"2018-03-09T08:31:22","guid":{"rendered":"https:\/\/www.codebee.co.th\/labs\/?p=4363"},"modified":"2018-03-10T04:25:31","modified_gmt":"2018-03-10T04:25:31","slug":"%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%97%e0%b8%b3-url-redirect-%e0%b9%82%e0%b8%94%e0%b8%a2%e0%b9%83%e0%b8%8a%e0%b9%89-htaccess","status":"publish","type":"post","link":"https:\/\/www.codebee.co.th\/labs\/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%97%e0%b8%b3-url-redirect-%e0%b9%82%e0%b8%94%e0%b8%a2%e0%b9%83%e0%b8%8a%e0%b9%89-htaccess\/","title":{"rendered":"\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33 URL redirect \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 .htaccess \u0e41\u0e25\u0e30\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e2d\u0e37\u0e48\u0e19 \u0e46"},"content":{"rendered":"<h2>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33 URL redirect \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 .htaccess \u0e41\u0e25\u0e30\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e2d\u0e37\u0e48\u0e19 \u0e46<\/h2>\n<p><\/br><br \/>\n<strong>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33 URL redirect \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 .htaccess \u0e41\u0e25\u0e30\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e2d\u0e37\u0e48\u0e19 \u0e46<\/strong><\/p>\n<p>\u0e42\u0e14\u0e22\u0e1b\u0e01\u0e15\u0e34\u0e40\u0e23\u0e32\u0e08\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e0a\u0e21\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e44\u0e14\u0e49\u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e0a\u0e37\u0e48\u0e2d\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e17\u0e35\u0e48 Address Bar \u0e02\u0e2d\u0e07 Browser \u0e44\u0e14\u0e49\u0e2b\u0e25\u0e32\u0e22\u0e41\u0e1a\u0e1a\u0e14\u0e49\u0e27\u0e22\u0e01\u0e31\u0e19 \u0e40\u0e0a\u0e48\u0e19<br \/>\n <!--more--><\/p>\n<pre class=\"lang:default decode:true \" >\r\nexample.com\r\nwww.example.com\r\nhttp:\/\/www.example.com\r\nhttps:\/\/www.example.com\r\n<\/pre>\n<p>\u0e16\u0e49\u0e32\u0e43\u0e04\u0e23\u0e40\u0e25\u0e22\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 Google Webmaster Tool \u0e08\u0e30\u0e2a\u0e31\u0e07\u0e40\u0e01\u0e15\u0e38\u0e27\u0e48\u0e32 Google \u0e08\u0e30\u0e41\u0e19\u0e30\u0e19\u0e33\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32 Submit URL \u0e17\u0e38\u0e01\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e49\u0e32\u0e07\u0e15\u0e49\u0e19\u0e02\u0e36\u0e49\u0e19\u0e44\u0e1b\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33 index \u0e41\u0e15\u0e48\u0e43\u0e19\u0e04\u0e27\u0e32\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e23\u0e34\u0e07 \u0e42\u0e2d\u0e01\u0e32\u0e28\u0e19\u0e49\u0e2d\u0e22\u0e21\u0e32\u0e01\u0e17\u0e35\u0e48\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e40\u0e23\u0e32\u0e08\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33 index \u0e44\u0e14\u0e49\u0e17\u0e31\u0e49\u0e07\u0e41\u0e1a\u0e1a www, none-www, https \u0e2b\u0e23\u0e37\u0e2d none-https \u0e17\u0e49\u0e32\u0e22\u0e17\u0e35\u0e48\u0e2a\u0e38\u0e14\u0e41\u0e25\u0e49\u0e27 Google \u0e08\u0e30\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e40\u0e1e\u0e35\u0e22\u0e07 1 \u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e43\u0e19 1 \u0e42\u0e14\u0e40\u0e21\u0e19\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e33\u0e44\u0e1b\u0e17\u0e33\u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a\u0e1c\u0e25\u0e01\u0e32\u0e23\u0e04\u0e49\u0e19\u0e2b\u0e32 \u0e0b\u0e36\u0e48\u0e07\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e17\u0e35\u0e48\u0e04\u0e19\u0e19\u0e34\u0e22\u0e21\u0e40\u0e02\u0e49\u0e32\u0e0a\u0e21\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e21\u0e32\u0e01\u0e17\u0e35\u0e48\u0e2a\u0e38\u0e14<\/p>\n<p><\/br><br \/>\n\u0e14\u0e49\u0e27\u0e22\u0e40\u0e2b\u0e15\u0e38\u0e1c\u0e25\u0e19\u0e35\u0e49 \u0e40\u0e23\u0e32\u0e08\u0e36\u0e07\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e25\u0e37\u0e2d\u0e01 1 \u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e0a\u0e21\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e41\u0e2a\u0e14\u0e07\u0e1c\u0e25\u0e1a\u0e19\u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35\u0e04\u0e19\u0e04\u0e49\u0e19\u0e2b\u0e32\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a\u0e18\u0e38\u0e23\u0e01\u0e34\u0e08\u0e40\u0e23\u0e32 \u0e42\u0e14\u0e22\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e01\u0e47\u0e04\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35\u0e04\u0e19\u0e40\u0e02\u0e49\u0e32\u0e0a\u0e21\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e01\u0e47\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23 redirect \u0e2b\u0e19\u0e49\u0e32\u0e40\u0e1e\u0e08\u0e19\u0e31\u0e49\u0e19\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e42\u0e14\u0e22\u0e2d\u0e32\u0e28\u0e31\u0e22\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e02\u0e2d\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e19\u0e44\u0e1f\u0e25\u0e4c .htaccess \u0e19\u0e31\u0e48\u0e19<br \/>\n<\/br><\/p>\n<h4>Redirect http \u0e18\u0e23\u0e23\u0e21\u0e14\u0e32\u0e44\u0e1b\u0e2b\u0e19\u0e49\u0e32\u0e41\u0e1a\u0e1a https<\/h4>\n<pre class=\"lang:default decode:true \" >RewriteCond %{HTTPS} off\r\nRewriteRule ^ https:\/\/www.example.com%{REQUEST_URI} [NC,L]<\/pre>\n<p><\/br><\/p>\n<h4>Redirect URL \u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e43\u0e2a\u0e48 www \u0e43\u0e2b\u0e49\u0e21\u0e35 www<\/h4>\n<pre class=\"lang:default decode:true \" >RewriteCond %{HTTP_HOST} !^www\\.\r\nRewriteRule ^ https:\/\/www.codebee.co.th%{REQUEST_URI} [NC,L]<\/pre>\n<p><\/br><\/p>\n<h4>Redirect http \u0e18\u0e23\u0e23\u0e21\u0e14\u0e32 \u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e43\u0e2a\u0e48 www \u0e43\u0e2b\u0e49\u0e21\u0e35 www \u0e41\u0e25\u0e30\u0e40\u0e1b\u0e47\u0e19 https<\/h4>\n<pre class=\"lang:default decode:true \" >RewriteCond %{HTTPS} off [OR]\r\nRewriteCond %{HTTP_HOST} !^www\\.\r\nRewriteRule ^ https:\/\/www.codebee.co.th%{REQUEST_URI} [NC,L]<\/pre>\n<p><\/br><\/p>\n<h4>Redirect index.html \u0e44\u0e1b\u0e17\u0e35\u0e48 root<\/h4>\n<pre class=\"lang:default decode:true \" >RewriteRule ^index\\.html$ \/ [NC,R,L]<\/pre>\n<p><\/br><\/p>\n<h4>Redirect \u0e01\u0e23\u0e13\u0e35\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a Error<\/h4>\n<pre class=\"lang:default decode:true \" >ErrorDocument 404 http:\/\/example.com\/404\/\r\nErrorDocument 500 http:\/\/example.com\/500\/<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33 URL redirect \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 .htaccess \u0e41\u0e25\u0e30\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e27\u0e34\u0e18\u0e35\u0e17\u0e33 URL redirect \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 .htaccess \u0e41\u0e25\u0e30\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e42\u0e14\u0e22\u0e1b\u0e01\u0e15\u0e34\u0e40\u0e23\u0e32\u0e08\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e0a\u0e21\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e44\u0e14\u0e49\u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e0a\u0e37\u0e48\u0e2d\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e17\u0e35\u0e48 Address Bar \u0e02\u0e2d\u0e07 Browser \u0e44\u0e14\u0e49\u0e2b\u0e25\u0e32\u0e22\u0e41\u0e1a\u0e1a\u0e14\u0e49\u0e27\u0e22\u0e01\u0e31\u0e19&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4457,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"video","meta":{"footnotes":""},"categories":[1,46],"tags":[1853,1851,1803,1828,1850,1827,1849,1848,1852],"class_list":["post-4363","post","type-post","status-publish","format-video","has-post-thumbnail","hentry","category-1","category-website-development-","tag-htaccess--url","tag-404-redirect","tag-google","tag-htaccess","tag-htaccess-redirect","tag-url-redirect","tag-webmaster","tag-webmaster-tool","tag--redirect","post_format-post-format-video"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/4363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/comments?post=4363"}],"version-history":[{"count":8,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/4363\/revisions"}],"predecessor-version":[{"id":4463,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/4363\/revisions\/4463"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media\/4457"}],"wp:attachment":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media?parent=4363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/categories?post=4363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/tags?post=4363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}