{"id":1935,"date":"2015-10-22T13:51:45","date_gmt":"2015-10-22T13:51:45","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=1935"},"modified":"2023-01-19T13:59:30","modified_gmt":"2023-01-19T10:59:30","slug":"joomla-htaccess-file","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/joomla-htaccess-file\/","title":{"rendered":"Joomla htaccess file"},"content":{"rendered":"<p><span style=\"font-family: Ubuntu,sans-serif;\"> Default .htaccess file for Joomla will be useful if you deleted it by mistake or edited incorrectly.<\/span><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h2>Default .htaccess file for Joomla<\/h2>\n<pre lang=\"php\">##\r\n# @package    Joomla\r\n# @copyright  Copyright (C) 2005 - 2015 Open Source Matters. All rights reserved.\r\n# @license    GNU General Public License version 2 or later; see LICENSE.txt\r\n##\r\n\r\n##\r\n# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!\r\n#\r\n# The line just below this section: 'Options +FollowSymLinks' may cause problems\r\n# with some server configurations.  It is required for use of mod_rewrite, but may already\r\n# be set by your server administrator in a way that disallows changing it in\r\n# your .htaccess file.  If using it causes your server to error out, comment it out (add # to\r\n# beginning of line), reload your site in your browser and test your sef url's.  If they work,\r\n# it has been set by your server administrator and you do not need it set here.\r\n##\r\n\r\n## No directory listings\r\nIndexIgnore *\r\n\r\n## Can be commented out if causes errors, see notes above.\r\nOptions +FollowSymlinks\r\nOptions -Indexes\r\n\r\n## Mod_rewrite in use.\r\n\r\nRewriteEngine On\r\n\r\n## Begin - Rewrite rules to block out some common exploits.\r\n# If you experience problems on your site block out the operations listed below\r\n# This attempts to block the most common type of exploit `attempts` to Joomla!\r\n#\r\n# Block out any script trying to base64_encode data within the URL.\r\nRewriteCond %{QUERY_STRING} base64_encode[^(]*\\([^)]*\\) [OR]\r\n# Block out any script that includes a <script> tag in URL.\r\nRewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]\r\n# Block out any script trying to set a PHP GLOBALS variable via URL.\r\nRewriteCond %{QUERY_STRING} GLOBALS(=|\\[|\\%[0-9A-Z]{0,2}) [OR]\r\n# Block out any script trying to modify a _REQUEST variable via URL.\r\nRewriteCond %{QUERY_STRING} _REQUEST(=|\\[|\\%[0-9A-Z]{0,2})\r\n# Return 403 Forbidden header and show the content of the root homepage\r\nRewriteRule .* index.php [F]\r\n#\r\n## End - Rewrite rules to block out some common exploits.\r\n\r\n## Begin - Custom redirects\r\n#\r\n# If you need to redirect some pages, or set a canonical non-www to\r\n# www redirect (or vice versa), place that code here. Ensure those\r\n# redirects use the correct RewriteRule syntax and the [R=301,L] flags.\r\n#\r\n## End - Custom redirects\r\n\r\n##\r\n# Uncomment following line if your webserver's URL\r\n# is not directly related to physical file paths.\r\n# Update Your Joomla! Directory (just \/ for root).\r\n##\r\n\r\n# RewriteBase \/\r\n\r\n## Begin - Joomla! core SEF Section.\r\n#\r\nRewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\r\n#\r\n# If the requested path and file is not \/index.php and the request\r\n# has not already been internally rewritten to the index.php script\r\nRewriteCond %{REQUEST_URI} !^\/index\\.php\r\n# and the requested path and file doesn't directly match a physical file\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\n# and the requested path and file doesn't directly match a physical folder\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\n# internally rewrite the request to the index.php script\r\nRewriteRule .* index.php [L]\r\n#\r\n## End - Joomla! core SEF Section.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Default .htaccess file for Joomla will be useful if you deleted it by mistake or edited incorrectly.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[160],"tags":[446,14],"class_list":["post-1935","post","type-post","status-publish","format-standard","hentry","category-redirects","tag-htaccess-2","tag-joomla"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Joomla htaccess file - Unihost.FAQ<\/title>\n<meta name=\"description\" content=\"Joomla htaccess: default .htaccess file for CMS Joomla 1.5 and Joomla 2.5-3.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/joomla-htaccess-file\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Joomla htaccess file - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"Joomla htaccess: default .htaccess file for CMS Joomla 1.5 and Joomla 2.5-3.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/joomla-htaccess-file\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-22T13:51:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-19T10:59:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png\" \/>\n\t<meta property=\"og:image:width\" content=\"250\" \/>\n\t<meta property=\"og:image:height\" content=\"141\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\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:\/\/unihost.com\/help\/joomla-htaccess-file\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/joomla-htaccess-file\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"Joomla htaccess file\",\"datePublished\":\"2015-10-22T13:51:45+00:00\",\"dateModified\":\"2023-01-19T10:59:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/joomla-htaccess-file\/\"},\"wordCount\":26,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"keywords\":[\".htaccess\",\"Joomla\"],\"articleSection\":[\"Redirects and .htaccess rules\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/joomla-htaccess-file\/\",\"url\":\"https:\/\/unihost.com\/help\/joomla-htaccess-file\/\",\"name\":\"Joomla htaccess file - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"datePublished\":\"2015-10-22T13:51:45+00:00\",\"dateModified\":\"2023-01-19T10:59:30+00:00\",\"description\":\"Joomla htaccess: default .htaccess file for CMS Joomla 1.5 and Joomla 2.5-3.\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/joomla-htaccess-file\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/joomla-htaccess-file\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/joomla-htaccess-file\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Joomla htaccess file\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/#website\",\"url\":\"https:\/\/unihost.com\/help\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Joomla htaccess file - Unihost.FAQ","description":"Joomla htaccess: default .htaccess file for CMS Joomla 1.5 and Joomla 2.5-3.","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:\/\/unihost.com\/help\/joomla-htaccess-file\/","og_locale":"en_US","og_type":"article","og_title":"Joomla htaccess file - Unihost.FAQ","og_description":"Joomla htaccess: default .htaccess file for CMS Joomla 1.5 and Joomla 2.5-3.","og_url":"https:\/\/unihost.com\/help\/joomla-htaccess-file\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2015-10-22T13:51:45+00:00","article_modified_time":"2023-01-19T10:59:30+00:00","og_image":[{"width":250,"height":141,"url":"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png","type":"image\/png"}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/joomla-htaccess-file\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/joomla-htaccess-file\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"Joomla htaccess file","datePublished":"2015-10-22T13:51:45+00:00","dateModified":"2023-01-19T10:59:30+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/joomla-htaccess-file\/"},"wordCount":26,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"keywords":[".htaccess","Joomla"],"articleSection":["Redirects and .htaccess rules"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/joomla-htaccess-file\/","url":"https:\/\/unihost.com\/help\/joomla-htaccess-file\/","name":"Joomla htaccess file - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"datePublished":"2015-10-22T13:51:45+00:00","dateModified":"2023-01-19T10:59:30+00:00","description":"Joomla htaccess: default .htaccess file for CMS Joomla 1.5 and Joomla 2.5-3.","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/joomla-htaccess-file\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/joomla-htaccess-file\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/joomla-htaccess-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"Joomla htaccess file"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/1935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=1935"}],"version-history":[{"count":3,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/1935\/revisions"}],"predecessor-version":[{"id":6825,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/1935\/revisions\/6825"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=1935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=1935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=1935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}