{"id":549,"date":"2009-04-21T21:00:27","date_gmt":"2009-04-21T11:00:27","guid":{"rendered":"https:\/\/eisabainyo.net\/weblog\/?p=549"},"modified":"2010-02-27T10:47:57","modified_gmt":"2010-02-27T00:47:57","slug":"redirect-old-pages-to-new-pages-using-htaccess","status":"publish","type":"post","link":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/","title":{"rendered":"How to redirect old pages to new pages using htaccess"},"content":{"rendered":"<p>If file names or page urls of your website have changed during site redevelopment and you are worried about losing your existing search engine rankings, referrals, and bookmarked links, the most efficient solution is to create 301 Redirect to redirect old pages to the new ones.   The code \"<strong>301<\/strong>\" means \"<strong>moved permanently<\/strong>\". There are many ways to create 301 redirects but assuming that your website is hosted on a Linux server, and you have access to .htaccess file on your server, you can simply redirect old pages to new pages as follows: <\/p>\n<p><code>redirect 301 \/my-old-page.htm \/my-new-page.htm<br \/>\nredirect 301 \/default.htm \/index.htm<br \/>\nredirect 301 \/location.htm \/map.htm<\/code><\/p>\n<h3>Recommend Book<\/h3>\n<div class=\"book\">\n<a href=\"http:\/\/www.amazon.com\/gp\/product\/1590595610?ie=UTF8&tag=eisabainyonet-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1590595610\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/eisabainyo.net\/weblog\/wp-content\/uploads\/2007\/08\/apache-mod-rewrite.jpg\" alt=\"\" title=\"The Definitive Guide to Apache mod_rewrite\" width=\"90\" height=\"119\" class=\"alignnone size-full wp-image-1110\" \/><span>The Definitive Guide to Apache mod_rewrite<\/span><\/a><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.assoc-amazon.com\/e\/ir?t=eisabainyonet-20&l=as2&o=1&a=1590595610\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>If file names or page urls of your website have changed during site redevelopment and<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,8,11],"tags":[],"class_list":["post-549","post","type-post","status-publish","format-standard","hentry","category-search","category-snippets","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to redirect old pages to new pages using htaccess  | Tech Leadership Advice &amp; Resources<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to redirect old pages to new pages using htaccess  | Tech Leadership Advice &amp; Resources\" \/>\n<meta property=\"og:description\" content=\"If file names or page urls of your website have changed during site redevelopment and\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"Tech Leadership Advice &amp; Resources\" \/>\n<meta property=\"article:published_time\" content=\"2009-04-21T11:00:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2010-02-27T00:47:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eisabainyo.net\/weblog\/wp-content\/uploads\/2007\/08\/apache-mod-rewrite.jpg\" \/>\n<meta name=\"author\" content=\"Isabel Nyo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Isabel Nyo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/\"},\"author\":{\"name\":\"Isabel Nyo\",\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/#\\\/schema\\\/person\\\/33457dd19f1ad9bbd4b0cb50c54dfcab\"},\"headline\":\"How to redirect old pages to new pages using htaccess\",\"datePublished\":\"2009-04-21T11:00:27+00:00\",\"dateModified\":\"2010-02-27T00:47:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/\"},\"wordCount\":108,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/#\\\/schema\\\/person\\\/33457dd19f1ad9bbd4b0cb50c54dfcab\"},\"image\":{\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/wp-content\\\/uploads\\\/2007\\\/08\\\/apache-mod-rewrite.jpg\",\"articleSection\":[\"Search\",\"Snippets\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/\",\"url\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/\",\"name\":\"How to redirect old pages to new pages using htaccess | Tech Leadership Advice &amp; Resources\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/wp-content\\\/uploads\\\/2007\\\/08\\\/apache-mod-rewrite.jpg\",\"datePublished\":\"2009-04-21T11:00:27+00:00\",\"dateModified\":\"2010-02-27T00:47:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/#primaryimage\",\"url\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/wp-content\\\/uploads\\\/2007\\\/08\\\/apache-mod-rewrite.jpg\",\"contentUrl\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/wp-content\\\/uploads\\\/2007\\\/08\\\/apache-mod-rewrite.jpg\",\"width\":\"90\",\"height\":\"119\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/2009\\\/04\\\/21\\\/redirect-old-pages-to-new-pages-using-htaccess\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to redirect old pages to new pages using htaccess\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/#website\",\"url\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/\",\"name\":\"Career Resources for Professionals in Tech\",\"description\":\"Books, worksheets, templates, frameworks and other useful resources for Chief Technology Officers (CTOs), VPs of Engineering &amp; Technology Directors\",\"publisher\":{\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/#\\\/schema\\\/person\\\/33457dd19f1ad9bbd4b0cb50c54dfcab\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/eisabainyo.net\\\/weblog\\\/#\\\/schema\\\/person\\\/33457dd19f1ad9bbd4b0cb50c54dfcab\",\"name\":\"Isabel Nyo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g\",\"caption\":\"Isabel Nyo\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g\"},\"description\":\"My interests: Web Development, Web Design, Web Applications, Web 2.0, AJAX, Search Engine Optimisation, Latest Technologies and more..\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to redirect old pages to new pages using htaccess  | Tech Leadership Advice &amp; Resources","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/","og_locale":"en_US","og_type":"article","og_title":"How to redirect old pages to new pages using htaccess  | Tech Leadership Advice &amp; Resources","og_description":"If file names or page urls of your website have changed during site redevelopment and","og_url":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/","og_site_name":"Tech Leadership Advice &amp; Resources","article_published_time":"2009-04-21T11:00:27+00:00","article_modified_time":"2010-02-27T00:47:57+00:00","og_image":[{"url":"https:\/\/eisabainyo.net\/weblog\/wp-content\/uploads\/2007\/08\/apache-mod-rewrite.jpg","type":"","width":"","height":""}],"author":"Isabel Nyo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Isabel Nyo","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/#article","isPartOf":{"@id":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/"},"author":{"name":"Isabel Nyo","@id":"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab"},"headline":"How to redirect old pages to new pages using htaccess","datePublished":"2009-04-21T11:00:27+00:00","dateModified":"2010-02-27T00:47:57+00:00","mainEntityOfPage":{"@id":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/"},"wordCount":108,"commentCount":0,"publisher":{"@id":"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab"},"image":{"@id":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/eisabainyo.net\/weblog\/wp-content\/uploads\/2007\/08\/apache-mod-rewrite.jpg","articleSection":["Search","Snippets","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/","url":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/","name":"How to redirect old pages to new pages using htaccess | Tech Leadership Advice &amp; Resources","isPartOf":{"@id":"https:\/\/eisabainyo.net\/weblog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/#primaryimage"},"image":{"@id":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/#primaryimage"},"thumbnailUrl":"https:\/\/eisabainyo.net\/weblog\/wp-content\/uploads\/2007\/08\/apache-mod-rewrite.jpg","datePublished":"2009-04-21T11:00:27+00:00","dateModified":"2010-02-27T00:47:57+00:00","breadcrumb":{"@id":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/#primaryimage","url":"https:\/\/eisabainyo.net\/weblog\/wp-content\/uploads\/2007\/08\/apache-mod-rewrite.jpg","contentUrl":"https:\/\/eisabainyo.net\/weblog\/wp-content\/uploads\/2007\/08\/apache-mod-rewrite.jpg","width":"90","height":"119"},{"@type":"BreadcrumbList","@id":"https:\/\/eisabainyo.net\/weblog\/2009\/04\/21\/redirect-old-pages-to-new-pages-using-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eisabainyo.net\/weblog\/"},{"@type":"ListItem","position":2,"name":"How to redirect old pages to new pages using htaccess"}]},{"@type":"WebSite","@id":"https:\/\/eisabainyo.net\/weblog\/#website","url":"https:\/\/eisabainyo.net\/weblog\/","name":"Career Resources for Professionals in Tech","description":"Books, worksheets, templates, frameworks and other useful resources for Chief Technology Officers (CTOs), VPs of Engineering &amp; Technology Directors","publisher":{"@id":"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eisabainyo.net\/weblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab","name":"Isabel Nyo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g","caption":"Isabel Nyo"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g"},"description":"My interests: Web Development, Web Design, Web Applications, Web 2.0, AJAX, Search Engine Optimisation, Latest Technologies and more.."}]}},"_links":{"self":[{"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/posts\/549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/comments?post=549"}],"version-history":[{"count":5,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/posts\/549\/revisions"}],"predecessor-version":[{"id":1113,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/posts\/549\/revisions\/1113"}],"wp:attachment":[{"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/media?parent=549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/categories?post=549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/tags?post=549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}