{"id":515,"date":"2013-01-24T19:24:52","date_gmt":"2013-01-24T19:24:52","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/01\/24\/htaccess-reference-list\/"},"modified":"2023-11-30T13:34:42","modified_gmt":"2023-11-30T18:34:42","slug":"htaccess-reference-list","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/","title":{"rendered":".htaccess File Reference List"},"content":{"rendered":"<p>The .htaccess files on your server are for making configuration changes to apache on a per directory basis. For more information on what the .htaccess is see our article on <a href=\"\/support\/website\/htaccess-file\/\">What is the .htaccess file and what do I use it for?<\/a> The following is a list of articles that explain different uses for the .htaccess file.<\/p>\n<div style=\"background: #ececec; padding: 0px 10px 0px 10px; border: 1px solid #aaaaaa;\">\n<h2>URL Rewriting and Redirects<\/h2>\n<ul class=\"article_list\">\n<li><a href=\"\/support\/website\/setting-up-a-301-permanent-redirect-via-htaccess\/\">Setting up a 301 permanent redirect via .htaccess<\/a><\/li>\n<li><a href=\"\/support\/website\/force-www-htaccess\/\">How to force www or non-www in htaccess<\/a><\/li>\n<li><a href=\"\/support\/website\/mobile-redirect\/\">How to redirect your website to its mobile version<\/a><\/li>\n<li><a href=\"\/support\/website\/website-design\/redirect-visitors-under-construction-page\/\">Redirecting visitors to an Under Construction page<\/a><\/li>\n<\/ul>\n<\/div>\n<div><\/div>\n<div style=\"background: #ececec; padding: 0px 10px 0px 10px; border: 1px solid #aaaaaa;\">\n<h2>Security<\/h2>\n<ul class=\"article_list\">\n<li><a href=\"\/support\/website\/using-the-ip-deny-manager\/\">Restrict access with .htaccess and the IP Deny Manager<\/a><\/li>\n<li><a href=\"\/support\/website\/block-unwanted-users-from-your-site-using-htaccess\/\">Block unwanted users from your site using .htaccess<\/a><\/li>\n<li><a href=\"\/support\/website\/htaccess-prevent-access\/\">How to prevent access to a specific file in htaccess<\/a><\/li>\n<li><a href=\"\/support\/website\/htaccess-prevent-filetype\/\">How to prevent access to multiple file types in htaccess<\/a><\/li>\n<li><a href=\"\/support\/website\/password-single-file-htaccess\/\">How to password protect a single file with htaccess<\/a><\/li>\n<li><a href=\"\/support\/website\/block-country-ips\/\">How to block a country&#8217;s IP ranges in htaccess<\/a><\/li>\n<li><a href=\"\/support\/website\/password-single-file-htaccess\/\">How to password protect a single file with htaccess<\/a><\/li>\n<li><a href=\"\/support\/edu\/cpanel\/hotlink-protect-htaccess\/\">Hotlink protect files in the .htaccess and cPanel<\/a><\/li>\n<li><a href=\"\/support\/website\/restrict-public-access-php-ini\/\">Restrict public access to your php.ini<\/a><\/li>\n<\/ul>\n<\/div>\n<div><\/div>\n<div style=\"background: #ececec; padding: 0px 10px 0px 10px; border: 1px solid #aaaaaa;\">\n<h2>Site Optimization and Performance<\/h2>\n<ul class=\"article_list\">\n<li><a href=\"\/support\/website\/how-to-enable-gzip-moddeflate\/\">An introduction to gzip \/ mod_deflate<\/a><\/li>\n<li><a href=\"\/support\/server\/apache\/apache-module-mod-expires\/\">How to add Apache Module mod_expires in your .htaccess<\/a><\/li>\n<li><a href=\"\/support\/website\/use-diferent-php-versions-one-account\/\">Using two different php versions on your server<\/a><\/li>\n<\/ul>\n<\/div>\n<div><\/div>\n<div style=\"background: #ececec; padding: 0px 10px 0px 10px; border: 1px solid #aaaaaa;\">\n<h2>File Handling<\/h2>\n<ul class=\"article_list\">\n<li><a href=\"\/support\/website\/recursive-php-ini\/\">How can I make my php.ini file recursive ?<\/a><\/li>\n<li><a href=\"\/support\/website\/using-server-side-includes-with-html\/\">Using Server Side Includes with HTML Files<\/a><\/li>\n<li><a href=\"\/support\/website\/htaccess-change-index-page\/\">How to change your default Index page in htaccess<\/a><\/li>\n<li><a href=\"\/support\/website\/force-download-htaccess\/\">Forcing a file to download in a browser via htaccess<\/a><\/li>\n<li><a href=\"\/support\/website\/remove-file-extensions\/\">Removing file extensions from displaying in browser via htaccess<\/a><\/li>\n<li><a href=\"\/support\/edu\/cpanel\/hotlink-protect-htaccess\/\">How do I enable Hotlink Protection in cPanel?<\/a><\/li>\n<li><a href=\"\/support\/questions\/en\/communities\/1\/topics\/2901-how-do-i-execute-php-code-in-a-html-page\">How do I execute PHP code in a HTML page?<\/a><\/li>\n<\/ul>\n<\/div>\n<div><\/div>\n<div style=\"background: #ececec; padding: 0px 10px 0px 10px; border: 1px solid #aaaaaa;\">\n<h2>Error Handling<\/h2>\n<ul class=\"article_list\">\n<li><a href=\"\/support\/website\/set-custom-404-page\/\">Setting a 404 error page via .htaccess<\/a><\/li>\n<\/ul>\n<\/div>\n<div><\/div>\n<div style=\"background: #ececec; padding: 0px 10px 0px 10px; border: 1px solid #aaaaaa;\">\n<h2>.htaccess Hacks<\/h2>\n<ul class=\"article_list\">\n<li><a href=\"\/support\/website\/cleaning-up-a-htaccess-hack\/\">Cleaning up a .htaccess hack<\/a><\/li>\n<\/ul>\n<\/div>\n<div><\/div>\n<div style=\"background: #ececec; padding: 0px 10px 0px 10px; border: 1px solid #aaaaaa;\">\n<h2>Miscellaneous<\/h2>\n<ul class=\"article_list\">\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/questions\/en\/communities\/1\/topics\/2914-activate-chrome-frame-via-htaccess\">Activate Chrome Frame via .htaccess?<\/a><\/li>\n<li><a href=\"\/support\/website\/htacess-change-timezone\/\">How to change your default timezone in htaccess<\/a><\/li>\n<li><a href=\"\/support\/website\/show-hidden-files-in-file-manager\/\">How to show hidden files (htaccess) when using cPanel&#8217;s File Manager<\/a><\/li>\n<\/ul>\n<\/div>\n<div><\/div>\n<div style=\"background: #ececec; padding: 0px 10px 0px 10px; border: 1px solid #aaaaaa;\">\n<h2>.htaccess Errors and issues<\/h2>\n<ul class=\"article_list\">\n<li><a href=\"\/support\/website\/error-numbers\/403-forbidden-error\/\">403 Forbidden Error<\/a><\/li>\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/questions\/en\/communities\/1\/topics\/3307-cant-update-php-settings-in-htaccess\">Can&#8217;t update PHP settings in .htaccess<\/a><\/li>\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/questions\/en\/communities\/1\/topics\/3752-how-do-i-delete-the-htaccess-file-once-ive-extracted-it\">How do I delete the .htaccess file once I&#8217;ve extracted it?<\/a><\/li>\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/questions\/en\/communities\/1\/topics\/3228-why-is-order-allow-deny-from-all-in-my-htaccess-file\">Why is order allow deny from all in my .htaccess file?<\/a><\/li>\n<li><a href=\"\/support\/edu\/joomla\/joomla-3\/joomla-generic-error-page\/\">Why is Joomla 3.0 not showing a custom error page?<\/a><\/li>\n<li><a href=\"\/support\/website\/do-you-support-modrewrite\/\">Do you support Mod_Rewrite?<\/a><\/li>\n<li><a href=\"\/support\/website\/error-numbers\/500-internal-server-error\/\">500 Internal Server Error<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The .htaccess files on your server are for making configuration changes to apache on a per directory basis. For more information on what the .htaccess is see our article on What is the .htaccess file and what do I use it for? The following is a list of articles that explain different uses for the<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/\"> Read More ><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-515","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>.htaccess File - Complete Reference List<\/title>\n<meta name=\"description\" content=\"List of guides and tutorials that explain different uses for the .htaccess file and how to make configuration changes to Apache.\" \/>\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\/htaccess-reference-list\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\".htaccess File - Complete Reference List\" \/>\n<meta property=\"og:description\" content=\"List of guides and tutorials that explain different uses for the .htaccess file and how to make configuration changes to Apache.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/\" \/>\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-24T19:24:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-30T18:34:42+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0ba9f3ef6fadef71df5aa120ff996c41\"},\"headline\":\".htaccess File Reference List\",\"datePublished\":\"2013-01-24T19:24:52+00:00\",\"dateModified\":\"2023-11-30T18:34:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/\"},\"wordCount\":363,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/\",\"name\":\".htaccess File - Complete Reference List\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2013-01-24T19:24:52+00:00\",\"dateModified\":\"2023-11-30T18:34:42+00:00\",\"description\":\"List of guides and tutorials that explain different uses for the .htaccess file and how to make configuration changes to Apache.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\".htaccess File Reference List\"}]},{\"@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\/0ba9f3ef6fadef71df5aa120ff996c41\",\"name\":\"InMotion Hosting Contributor\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/jamesr\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":".htaccess File - Complete Reference List","description":"List of guides and tutorials that explain different uses for the .htaccess file and how to make configuration changes to Apache.","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\/htaccess-reference-list\/","og_locale":"en_US","og_type":"article","og_title":".htaccess File - Complete Reference List","og_description":"List of guides and tutorials that explain different uses for the .htaccess file and how to make configuration changes to Apache.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-01-24T19:24:52+00:00","article_modified_time":"2023-11-30T18:34:42+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0ba9f3ef6fadef71df5aa120ff996c41"},"headline":".htaccess File Reference List","datePublished":"2013-01-24T19:24:52+00:00","dateModified":"2023-11-30T18:34:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/"},"wordCount":363,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/","name":".htaccess File - Complete Reference List","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-01-24T19:24:52+00:00","dateModified":"2023-11-30T18:34:42+00:00","description":"List of guides and tutorials that explain different uses for the .htaccess file and how to make configuration changes to Apache.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/htaccess-reference-list\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":".htaccess File Reference List"}]},{"@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\/0ba9f3ef6fadef71df5aa120ff996c41","name":"InMotion Hosting Contributor","url":"https:\/\/www.inmotionhosting.com\/support\/author\/jamesr\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4288,"name":"Website","slug":"website","link":"https:\/\/www.inmotionhosting.com\/support\/website\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/515","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=515"}],"version-history":[{"count":5,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/515\/revisions"}],"predecessor-version":[{"id":108119,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/515\/revisions\/108119"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}