{"id":1763,"date":"2020-03-25T19:32:13","date_gmt":"2020-03-25T19:32:13","guid":{"rendered":"https:\/\/leap.staging.ribbitt.com\/leap-group\/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:\/\/leap.staging.ribbitt.com\/leap-group\/redirect-to-higher-search-rankings\/","title":{"rendered":"Redirect to Higher Search Rankings"},"content":{"rendered":"<p><img decoding=\"async\" title=\"q2-2010-redirect-to-higher\" src=\"https:\/\/leap.staging.ribbitt.com\/wp-content\/uploads\/sites\/4\/2022\/08\/q2-2010-redirect-to-higher.jpg\" alt=\"q2-2010-redirect-to-higher\"><\/p>\n<p>&#13;<br \/>\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<p>&#13;<br \/>\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<p>&#13;<br \/>\n&nbsp;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<p>&#13;<br \/>\nFirst, create a file named .htaccess in the web root and turn the rewrite engine on: &lt;CODE&gt;REWRITEENGINE ON&lt;\/CODE&gt; <\/p>\n<p>&#13;<br \/>\nThen, create a condition to trigger the rewrite: &lt;CODE&gt;REWRITECOND %{HTTP_ HOST} ^LEAPFROGINTERACTIVE.COM [NC]&lt;\/CODE&gt; <\/p>\n<p>&#13;<br \/>\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<p>&#13;<br \/>\nFinally, create a rule: &lt;CODE&gt;REWRITERULE ^(.*)$ HTTP:\/\/ WWW.LEAPFROGINTERACTIVE. COM\/$1 [L,R=301]&lt;\/CODE&gt; <\/p>\n<p>&#13;<br \/>\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":"<p>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":43,"featured_media":1766,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[59,45],"class_list":["post-1763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-search","tag-technology"],"acf":[],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/leap.staging.ribbitt.com\/leap-group\/wp-json\/wp\/v2\/posts\/1763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leap.staging.ribbitt.com\/leap-group\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leap.staging.ribbitt.com\/leap-group\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leap.staging.ribbitt.com\/leap-group\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/leap.staging.ribbitt.com\/leap-group\/wp-json\/wp\/v2\/comments?post=1763"}],"version-history":[{"count":0,"href":"https:\/\/leap.staging.ribbitt.com\/leap-group\/wp-json\/wp\/v2\/posts\/1763\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/leap.staging.ribbitt.com\/leap-group\/wp-json\/wp\/v2\/media\/1766"}],"wp:attachment":[{"href":"https:\/\/leap.staging.ribbitt.com\/leap-group\/wp-json\/wp\/v2\/media?parent=1763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leap.staging.ribbitt.com\/leap-group\/wp-json\/wp\/v2\/categories?post=1763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leap.staging.ribbitt.com\/leap-group\/wp-json\/wp\/v2\/tags?post=1763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}