{"id":97,"date":"2020-02-12T10:36:34","date_gmt":"2020-02-12T10:36:34","guid":{"rendered":"https:\/\/www.lcn.com\/support\/knowledge-base\/what-is-a-htaccess-file\/"},"modified":"2020-02-12T10:36:34","modified_gmt":"2020-02-12T10:36:34","slug":"what-is-a-htaccess-file","status":"publish","type":"ht_kb","link":"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/","title":{"rendered":"What is a .htaccess file?"},"content":{"rendered":"<p>.htaccess files are configuration files that let you control how your website is accessed e.g. password protect access to content or rewriting long web addresses to shorter, easier to remember ones.<\/p>\n<p>A .htaccess file is a simple text file. Its name looks similar to a file extension like .txt or .html, however the entire filename is just .htaccess. You can use any plain text editor to create a .htaccess file (e.g. Windows &#8211; notepad, Mac \u2013 textedit).<\/p>\n<p>Some computers hide .htaccess files in folders by default.<\/p>\n<h4>Windows<\/h4>\n<p>On Windows you will need to turn on the <strong>Show hidden files and folders<\/strong> option under <strong>Folder<\/strong> and <strong>Search Options<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"screenshot\" src=\"\/support\/articles\/attachment\/321\/inline\/original\/1409043071\/folderoptions.png\"\/><\/p>\n<h4>Mac<\/h4>\n<p>On Mac you will need to run the following Terminal commands:<\/p>\n<pre class=\"prettyprint linenums\">defaults write com.apple.finder AppleShowAllFiles FALSEkillall Finder<\/pre>\n<p><img decoding=\"async\" class=\"screenshot\" src=\"\/support\/articles\/attachment\/322\/inline\/original\/1409044294\/folderoptions_mac.png\"\/><\/p>\n<p>This will show you all of hidden files and folders on your Mac, note that editing hidden files can break things. To stop showing all hidden files run the same command again but replace <strong>TRUE<\/strong> with <strong>FALSE<\/strong>.<\/p>\n<p>Some FTP programs don&#8217;t show .htaccess files by default. To show hidden files in Filezilla follow our <a href=\"\/support\/articles\/how-to-change-file-permissions-via-ftp\" target=\"blank\" rel=\"noopener noreferrer\">How to change file permissions via FTP<\/a> guide for instructions on how to do this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>.htaccess files are configuration files that let you control how your website is accessed e.g. password protect access to content or rewriting long web addresses to shorter, easier to remember ones. A .htaccess file is a simple text file. Its name looks similar to a file extension like .txt or .html, however the entire filename [&hellip;]<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[15],"ht-kb-tag":[5],"class_list":["post-97","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-creating-a-new-website","ht_kb_tag-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is a .htaccess file? - LCN.com<\/title>\n<meta name=\"description\" content=\"What is .htaccess file? .htaccess files are configuration files that let you control how your website is accessed. Find out more with this guide.\" \/>\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.lcn.com\/support\/articles\/what-is-a-htaccess-file\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is a .htaccess file? - LCN.com\" \/>\n<meta property=\"og:description\" content=\"What is .htaccess file? .htaccess files are configuration files that let you control how your website is accessed. Find out more with this guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/\" \/>\n<meta property=\"og:site_name\" content=\"Customer Support Guides - LCN\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/lcndotcom\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lcn.com\/support\/articles\/attachment\/321\/inline\/original\/1409043071\/folderoptions.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@lcndotcom\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/\",\"url\":\"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/\",\"name\":\"What is a .htaccess file? - LCN.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#website\"},\"datePublished\":\"2020-02-12T10:36:34+00:00\",\"description\":\"What is .htaccess file? .htaccess files are configuration files that let you control how your website is accessed. Find out more with this guide.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.lcn.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is a .htaccess file?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.lcn.com\/support\/#website\",\"url\":\"https:\/\/www.lcn.com\/support\/\",\"name\":\"Customer Support Guides - LCN\",\"description\":\"- LCN\",\"publisher\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.lcn.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.lcn.com\/support\/#organization\",\"name\":\"LCN.com\",\"url\":\"https:\/\/www.lcn.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg\",\"contentUrl\":\"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg\",\"width\":461,\"height\":461,\"caption\":\"LCN.com\"},\"image\":{\"@id\":\"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/lcndotcom\",\"https:\/\/x.com\/lcndotcom\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is a .htaccess file? - LCN.com","description":"What is .htaccess file? .htaccess files are configuration files that let you control how your website is accessed. Find out more with this guide.","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.lcn.com\/support\/articles\/what-is-a-htaccess-file\/","og_locale":"en_US","og_type":"article","og_title":"What is a .htaccess file? - LCN.com","og_description":"What is .htaccess file? .htaccess files are configuration files that let you control how your website is accessed. Find out more with this guide.","og_url":"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/","og_site_name":"Customer Support Guides - LCN","article_publisher":"https:\/\/www.facebook.com\/lcndotcom","og_image":[{"url":"https:\/\/www.lcn.com\/support\/articles\/attachment\/321\/inline\/original\/1409043071\/folderoptions.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@lcndotcom","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/","url":"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/","name":"What is a .htaccess file? - LCN.com","isPartOf":{"@id":"https:\/\/www.lcn.com\/support\/#website"},"datePublished":"2020-02-12T10:36:34+00:00","description":"What is .htaccess file? .htaccess files are configuration files that let you control how your website is accessed. Find out more with this guide.","breadcrumb":{"@id":"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.lcn.com\/support\/articles\/what-is-a-htaccess-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lcn.com\/support\/"},{"@type":"ListItem","position":2,"name":"What is a .htaccess file?"}]},{"@type":"WebSite","@id":"https:\/\/www.lcn.com\/support\/#website","url":"https:\/\/www.lcn.com\/support\/","name":"Customer Support Guides - LCN","description":"- LCN","publisher":{"@id":"https:\/\/www.lcn.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lcn.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.lcn.com\/support\/#organization","name":"LCN.com","url":"https:\/\/www.lcn.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg","contentUrl":"https:\/\/www.lcn.com\/support\/wp-content\/uploads\/2020\/02\/ZF_-hcc3.jpg","width":461,"height":461,"caption":"LCN.com"},"image":{"@id":"https:\/\/www.lcn.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/lcndotcom","https:\/\/x.com\/lcndotcom"]}]}},"_links":{"self":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":0,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb\/97\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb-category?post=97"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.lcn.com\/support\/wp-json\/wp\/v2\/ht-kb-tag?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}