{"id":539,"date":"2013-01-30T21:15:26","date_gmt":"2013-01-30T21:15:26","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/01\/30\/redirect-visitors-under-construction-page\/"},"modified":"2026-07-28T11:44:25","modified_gmt":"2026-07-28T15:44:25","slug":"redirect-visitors-under-construction-page","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/","title":{"rendered":"Redirecting Visitors to an Under Construction Page"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When updating your website, you may want to block all visitors except yourself. You can do this by adding a temporary 302 redirect in your <code>.htaccess<\/code> file that sends everyone else to a <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/how-to-create-a-bootstrap-under-construction-page\/\">construction page<\/a>. This lets you work on the site privately while showing visitors a \u201ccoming soon\u201d or \u201cunder construction\u201d message.<\/p>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><strong>Important:<\/strong> First create a file named <code>construction.html<\/code> in your <code>public_html<\/code> directory. (For help creating this page, see InMotion Hosting\u2019s guide on <a href=\"\/support\/website\/website-design\/coming-soon-page\/\">building an Under Construction or Coming Soon page<\/a>.)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Allow Access from Only One IP Address<\/h2>\n\n\n\n<ol class=\"wp-block-list article_list\">\n<li><strong>Find your current IP address<\/strong>. Visit <a href=\"https:\/\/support.inmotionhosting.com\/ipcheck.php\" target=\"_blank\" rel=\"noreferrer noopener\">support.inmotionhosting.com\/ipcheck.php<\/a> and note the IP shown.<\/li>\n\n\n\n<li><strong>Log in to cPanel<\/strong>.<\/li>\n\n\n\n<li><strong>Open File Manager<\/strong>\n<ul class=\"wp-block-list\">\n<li>Select the <code>public_html<\/code> web root.<\/li>\n\n\n\n<li>Check the box for <strong>Show Hidden Files<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Go<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Edit the <code>.htaccess<\/code> file<\/strong> using the Code Editor.<\/li>\n\n\n\n<li><strong>Add the following code at the very top<\/strong> of the <code>.htaccess<\/code> file (replace <code>123.45.67.89<\/code> with your actual IP address):<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #F97583\">Options<\/span><span style=\"color: #E1E4E8\"> +FollowSymlinks<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F97583\">RewriteEngine<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">on<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F97583\">RewriteCond<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #DBEDFF\">%{REMOTE_ADDR}<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">!^123.45.67.89$<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F97583\">RewriteCond<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #DBEDFF\">%{REQUEST_URI}<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">!construction.html<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F97583\">RewriteRule<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #DBEDFF\">^(.*)$<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">\/construction.html<\/span><span style=\"color: #E1E4E8\"> &#91;R=<\/span><span style=\"color: #79B8FF\">302<\/span><span style=\"color: #E1E4E8\">,L&#93;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Save the file<\/strong> to implement the Under Construction page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Notes:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you are using a subdomain, place <code>RewriteEngine Off<\/code> in that subdomain\u2019s own <code>.htaccess<\/code> file.<\/li>\n\n\n\n<li>After saving, anyone whose IP is not the one you listed will be redirected to <code>\/construction.html<\/code>.<\/li>\n\n\n\n<li>Dynamic IP addresses can change. If you lose access later, check your current IP again and update the rule in <code>.htaccess<\/code>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>When updating your website, you may want to block all visitors except yourself. You can do this by adding a temporary 302 redirect in your .htaccess file that sends everyone else to a construction page. This lets you work on the site privately while showing visitors a \u201ccoming soon\u201d or \u201cunder construction\u201d message. Important: First<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/\"> Read More ><\/a><\/p>\n","protected":false},"author":56983,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_ayudawp_aiss_exclude":false,"_ayudawp_aiss_summary":"You can do this by adding a temporary 302 redirect in your file that sends everyone else to a construction page. Important: First create a file named in your directory. (For help creating this page, see InMotion Hosting\u2019s guide on building an Under Construction or Coming Soon page.). Save the file to implement the Under Construction page.","_ayudawp_aiss_summary_provider":"extractive","_ayudawp_aiss_summary_hash":"494e24165b31d3f2a56012efe793a3c39ac49fb0","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4346],"tags":[],"class_list":["post-539","post","type-post","status-publish","format-standard","hentry","category-website-design"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Redirecting Visitors to an Under Construction Page | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"This article will explain how to redirect visitors to an under construction page except your IP address.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redirecting Visitors to an Under Construction Page | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"This article will explain how to redirect visitors to an under construction page except your IP address.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-30T21:15:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-28T15:44:25+00:00\" \/>\n<meta name=\"author\" content=\"Carrie Smaha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@carriesmaha\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carrie Smaha\" \/>\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:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/website-design\\\/redirect-visitors-under-construction-page\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/website-design\\\/redirect-visitors-under-construction-page\\\/\"},\"author\":{\"name\":\"Carrie Smaha\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#\\\/schema\\\/person\\\/595948dab2995d347a87076abdae19d8\"},\"headline\":\"Redirecting Visitors to an Under Construction Page\",\"datePublished\":\"2013-01-30T21:15:26+00:00\",\"dateModified\":\"2026-07-28T15:44:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/website-design\\\/redirect-visitors-under-construction-page\\\/\"},\"wordCount\":213,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#organization\"},\"articleSection\":[\"Website Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/website-design\\\/redirect-visitors-under-construction-page\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/website-design\\\/redirect-visitors-under-construction-page\\\/\",\"url\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/website-design\\\/redirect-visitors-under-construction-page\\\/\",\"name\":\"Redirecting Visitors to an Under Construction Page | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#website\"},\"datePublished\":\"2013-01-30T21:15:26+00:00\",\"dateModified\":\"2026-07-28T15:44:25+00:00\",\"description\":\"This article will explain how to redirect visitors to an under construction page except your IP address.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/website-design\\\/redirect-visitors-under-construction-page\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/website-design\\\/redirect-visitors-under-construction-page\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/website-design\\\/redirect-visitors-under-construction-page\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Redirecting Visitors to an Under Construction Page\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inmotionhosting\\\/\",\"https:\\\/\\\/x.com\\\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#\\\/schema\\\/person\\\/595948dab2995d347a87076abdae19d8\",\"name\":\"Carrie Smaha\",\"description\":\"Carrie Smaha is a digital strategy, web development, and SEO leader with 20 years of experience. She built her foundation in fast-paced agency environments before moving in-house to InMotion Hosting, where she leads go-to-market programs, agency initiatives, and technical product marketing that connects product capability to real customer decisions.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/carriesmaha\\\/\",\"https:\\\/\\\/x.com\\\/carriesmaha\"],\"url\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/author\\\/carries\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Redirecting Visitors to an Under Construction Page | InMotion Hosting","description":"This article will explain how to redirect visitors to an under construction page except your IP address.","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:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/","og_locale":"en_US","og_type":"article","og_title":"Redirecting Visitors to an Under Construction Page | InMotion Hosting","og_description":"This article will explain how to redirect visitors to an under construction page except your IP address.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-01-30T21:15:26+00:00","article_modified_time":"2026-07-28T15:44:25+00:00","author":"Carrie Smaha","twitter_card":"summary_large_image","twitter_creator":"@carriesmaha","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Carrie Smaha","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/"},"author":{"name":"Carrie Smaha","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8"},"headline":"Redirecting Visitors to an Under Construction Page","datePublished":"2013-01-30T21:15:26+00:00","dateModified":"2026-07-28T15:44:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/"},"wordCount":213,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/","name":"Redirecting Visitors to an Under Construction Page | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-01-30T21:15:26+00:00","dateModified":"2026-07-28T15:44:25+00:00","description":"This article will explain how to redirect visitors to an under construction page except your IP address.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/redirect-visitors-under-construction-page\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Redirecting Visitors to an Under Construction Page"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8","name":"Carrie Smaha","description":"Carrie Smaha is a digital strategy, web development, and SEO leader with 20 years of experience. She built her foundation in fast-paced agency environments before moving in-house to InMotion Hosting, where she leads go-to-market programs, agency initiatives, and technical product marketing that connects product capability to real customer decisions.","sameAs":["https:\/\/www.linkedin.com\/in\/carriesmaha\/","https:\/\/x.com\/carriesmaha"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/carries\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4346,"name":"Website Design","slug":"website-design","link":"https:\/\/www.inmotionhosting.com\/support\/website\/website-design\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/56983"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=539"}],"version-history":[{"count":9,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/539\/revisions"}],"predecessor-version":[{"id":900128,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/539\/revisions\/900128"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}