{"id":1763,"date":"2020-03-25T19:32:13","date_gmt":"2020-03-25T19:32:13","guid":{"rendered":"https:\/\/leapgroupnetwork.com\/redirect-to-higher-search-rankings\/"},"modified":"2022-08-10T14:48:32","modified_gmt":"2022-08-10T14:48:32","slug":"redirect-to-higher-search-rankings","status":"publish","type":"post","link":"https:\/\/leapgroupnetwork.com\/logic-magic\/redirect-to-higher-search-rankings\/","title":{"rendered":"Redirect to Higher Search Rankings"},"content":{"rendered":"

\"q2-2010-redirect-to-higher\"<\/p>\n


\nLet\u2019s talk about URL redirection and how a close attention to detail can make a huge difference with Search Engine Optimization (SEO).<\/p>\n


\nThere are almost as many techniques for URL redirection as there are reasons to utilize it. Some of the most common include the Refresh meta tag, java-script redirect, server-side scripting, and mod_rewrite. I am going to focus on a mod_rewrite redirect inside an .htaccess file and show you how to pass a 301 Server Status code (remember those from the last issue?) to maximize for SEO.<\/p>\n


\n I will use an example for the Apache HTTP server, but you should be able to use the same syntax in IIS if you use an ISAPI Rewrite filter. <\/p>\n


\nFirst, create a file named .htaccess in the web root and turn the rewrite engine on: <CODE>REWRITEENGINE ON<\/CODE> <\/p>\n


\nThen, create a condition to trigger the rewrite: <CODE>REWRITECOND %{HTTP_ HOST} ^LEAPFROGINTERACTIVE.COM [NC]<\/CODE> <\/p>\n


\nLet me simplify that for you. Basically, if the web client requests a URL that begins with, for example, leapfroginteractive. com (no matter the type case), then match and move to the rule. <\/p>\n


\nFinally, create a rule: <CODE>REWRITERULE ^(.*)$ HTTP:\/\/ WWW.LEAPFROGINTERACTIVE. COM\/$1 [L,R=301]<\/CODE> <\/p>\n


\nThis simply states to redirect to www.leapfroginteractive.com and stop at this rule. This line is where the attention to detail comes into play. R=301 sends the 301 server status code which means, \u201cMoved Permanently.\u201d Without the 301 redirect, search engines could index two separate versions of the website: one for leapfroginteractive.com and the other for www.leapfroginteractive.com. By using the 301 redirect, you can focus your SEO efforts on a single site and make sure it is as visible to the search engines\u2014and potential clients\u2014as possible.<\/p>\n","protected":false},"excerpt":{"rendered":"

Let\u2019s talk about URL redirection and how a close attention to detail can make a huge difference with Search Engine Optimization (SEO).<\/p>\n","protected":false},"author":40,"featured_media":1766,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[1],"tags":[59,45],"issue":[12],"collection":[],"acf":[],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/posts\/1763"}],"collection":[{"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/comments?post=1763"}],"version-history":[{"count":0,"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/posts\/1763\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/media\/1766"}],"wp:attachment":[{"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/media?parent=1763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/categories?post=1763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/tags?post=1763"},{"taxonomy":"issue","embeddable":true,"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/issue?post=1763"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/leapgroupnetwork.com\/wp-json\/wp\/v2\/collection?post=1763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}