{"id":96,"date":"2008-08-27T15:45:18","date_gmt":"2008-08-27T07:45:18","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/?p=96"},"modified":"2008-08-27T21:39:30","modified_gmt":"2008-08-27T13:39:30","slug":"301-redirects-htaccess","status":"publish","type":"post","link":"https:\/\/www.sysadmindayph.com\/blog\/301-redirects-htaccess\/","title":{"rendered":"301 Redirects | .htaccess Redirects"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" style=\"float: left; border: 2px solid black; margin-left: 10px; margin-right: 10px;\" src=\"http:\/\/www.bestrank.com\/blog\/wp-content\/uploads\/2008\/02\/301redirect.gif\" alt=\"301 redirect\" width=\"240\" height=\"267\" \/><\/p>\n<p><strong>301 .htaccess redirect<\/strong> is the safest search engine redirect there is! This is also the friendliest method for <a href=\"http:\/\/www.sysadmindayph.com\/blog\/301-redirects-htaccess\">web page redirection<\/a>. Most web hosting company and web master out there will definitely recommend this method of web page redirection. The code &#8220;301&#8221; is interpreted as &#8220;moved permanently&#8221;.<\/p>\n<p>For websites hosted in either dedicated server or a <a href=\"http:\/\/www.sysadmindayph.com\/blog\/shared-web-hosting\/\">shared web hosting server<\/a>, you use 301 redirects in redirecting a single html page or an entire website.<\/p>\n<p>Here&#8217;s and example of redirecting a single page\/html page:<\/p>\n<p><!--more--><\/p>\n<blockquote><p>Redirect 301 \/oldpage.html http:\/\/www.example.com\/newpage.html<\/p><\/blockquote>\n<p>For a whole website, you can use 301 redirect in this manner:<\/p>\n<blockquote><p>Redirect 301 \/ http:\/\/www.example.com\/<\/p><\/blockquote>\n<p>Personally on my shared web hosted site, I only use the  HTML redirect. But there are other use of the 301 redirect on a web sites.<\/p>\n<p>Here are other use of it:<\/p>\n<ol>\n<li>Changed file extension<\/li>\n<li>Redirect web site with &#8216;www&#8217; to not having one.<\/li>\n<li>vice versa of the previous example.<\/li>\n<li>Redirect example.com\/index.php to example.com\/<\/li>\n<\/ol>\n<p>So next time you moved your web site content from one web hosting server provider to another or moving your site to a new domain name, you can definitely use the 301 redirect.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>301 .htaccess redirect is the safest search engine redirect there is! This is also the friendliest method for web page redirection. Most web hosting company and web master out there will definitely recommend this method &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53,49,54,69],"tags":[70,72,383,71,63],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-apache","category-web-hosting","category-web-server","category-webmaster","tag-301-redirect","tag-shared-web-host","tag-web-hosting","tag-web-site","tag-webhosting"],"_links":{"self":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":0,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}