{"id":4969,"date":"2026-04-01T10:13:53","date_gmt":"2026-04-01T10:13:53","guid":{"rendered":"https:\/\/tinyurl.com\/blog\/?p=4969"},"modified":"2026-04-07T16:13:24","modified_gmt":"2026-04-07T16:13:24","slug":"redirect-apache-server","status":"publish","type":"post","link":"https:\/\/tinyurl.com\/blog\/redirect-apache-server\/","title":{"rendered":"How to Redirect on Apache Server"},"content":{"rendered":"\n<p style=\"font-size:16px\">This will cover instructions on how to create a Redirect on Apache. The following steps will&nbsp;<strong>require ownership or control of the site your TinyURL points to<\/strong>. As these changes may lead to an interruption of service for your website, if you don&#8217;t have or you are unsure how to proceed, please consult with your IT, hosting provider or Web Development team.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:20px\">Apache Server<\/h3>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p style=\"font-size:16px\">Redirecting pages of site on an Apache server can be done my modifying the &#8216;<strong>.htaccess<\/strong>&#8216; file on your website. The&nbsp;<em>.htaccess<\/em>&nbsp;file will allow you to control configuration changes and is usually placed in the root folder of your website.<\/p>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol class=\"wp-block-list\">\n<li style=\"font-size:16px\">Log on to your website and locate&nbsp;<em>.htaccess<\/em>&nbsp;file in your the root folder.<\/li>\n<\/ol>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li style=\"font-size:16px\">Open the&nbsp;<em>.htaccess<\/em>&nbsp;file with Notepad++.<\/li>\n<\/ol>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li style=\"font-size:16px\">Edit the file and ensure that the following syntax below is correct:To redirect a&nbsp;<strong>specific page<\/strong>, add a line to the&nbsp;<em>.htaccess<\/em>&nbsp;file:<code> `RedirectPermanent \/old-file.html http:\/\/www.mydomain.com\/new-file.html` Or `Redirect 301 \/old-file.html http:\/\/www.mydomain.com\/new-file.html` <\/code>To redirect an&nbsp;<strong>entire domain<\/strong>, add a line to the&nbsp;<em>.htaccess<\/em>&nbsp;file:<code> `RedirectPermanent \/ http:\/\/www.new-domain.com\/`<\/code><\/li>\n<\/ol>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p style=\"font-size:16px\"><strong>Note<\/strong>&nbsp;: Remember to substitute and validate that you have the correct html file names and domain names on these instructions:<\/p>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:16px\">&#8216;*old-file*&#8217;      : This is the html file for your old page<\/li>\n<\/ul>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:16px\"> &#8216;*new-file*&#8217;      : This is the html file for your new page<\/li>\n<\/ul>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:16px\">&#8216;*mydomain.com*&#8217;  : This is the root web folder of your old domain<\/li>\n<\/ul>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:16px\">&#8216;*new-domain.com*&#8217;: This is the root web folder of your new domain<\/li>\n<\/ul>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li style=\"font-size:16px\">After you insert these commands to your pages, remember to&nbsp;<strong>put a blank line at the end<\/strong>&nbsp;of your&nbsp;<em>.htaccess<\/em>&nbsp;file.<\/li>\n<\/ol>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li style=\"font-size:16px\">Ensure that you save&nbsp;<em>.htaccess<\/em>&nbsp;file in UNIX format.<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This will cover instructions on how to create a Redirect on Apache. The following steps will&nbsp;require ownership or control of the site your TinyURL points to. As these changes may lead to an interruption of service for your website, if you don&#8217;t have or you are unsure how to proceed, please consult with your IT, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60],"tags":[66],"class_list":["post-4969","post","type-post","status-publish","format-standard","hentry","category-help","tag-other-help-content"],"_links":{"self":[{"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/posts\/4969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/comments?post=4969"}],"version-history":[{"count":3,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/posts\/4969\/revisions"}],"predecessor-version":[{"id":4974,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/posts\/4969\/revisions\/4974"}],"wp:attachment":[{"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/media?parent=4969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/categories?post=4969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tinyurl.com\/blog\/wp-json\/wp\/v2\/tags?post=4969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}