<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Apache Archives - ITEC4B</title>
	<atom:link href="https://itec4b.com/category/server/web-server/apache/feed/" rel="self" type="application/rss+xml" />
	<link>https://itec4b.com/category/server/web-server/apache/</link>
	<description>Information Technology Expert Consulting</description>
	<lastBuildDate>Thu, 02 Mar 2023 12:50:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
	<item>
		<title>Apache Web Server: .htaccess files</title>
		<link>https://itec4b.com/apache-web-server-htaccess-files/</link>
		
		<dc:creator><![CDATA[author]]></dc:creator>
		<pubDate>Fri, 27 Jan 2023 14:47:01 +0000</pubDate>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://itec4b.com/?p=440</guid>

					<description><![CDATA[https://httpd.apache.org/docs/current/howto/htaccess.html Apache web server allows for decentralized management of configuration via special files placed inside the web tree.The special files are usually called .htaccess (hypertext access), but any name can be specified in the AccessFileName directive. A .htaccess file contains one or more configuration directives and is placed in a directory, the directives apply to &#8230; <p class="link-more"><a href="https://itec4b.com/apache-web-server-htaccess-files/" class="more-link">Read more<span class="screen-reader-text"> "Apache Web Server: .htaccess files"</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p><a href="https://httpd.apache.org/docs/current/howto/htaccess.html">https://httpd.apache.org/docs/current/howto/htaccess.html</a></p>



<p>Apache web server allows for <strong><span style="text-decoration: underline;">decentralized management of configuration</span></strong> via special files placed inside the web tree.<br>The special files are usually called <strong><span style="text-decoration: underline;">.htaccess (hypertext access)</span></strong>, but any name can be specified in the <a href="https://httpd.apache.org/docs/current/mod/core.html#accessfilename">AccessFileName</a> directive.</p>



<p><span style="text-decoration: underline;"><strong>A .htaccess file contains one or more configuration directives and is placed in a directory, the directives apply to that directory, and all subdirectories thereof</strong></span>.</p>



<p>The .htaccess files follow the same syntax as the main configuration files.<br>Since .htaccess files are read on every request, changes made in these files take immediate effect.</p>



<p>To find which directives can be placed in .htaccess files, check the Context of the directive.<br>The server administrator further controls what directives may be placed in .htaccess files by configuring the <a href="https://httpd.apache.org/docs/current/mod/core.html#allowoverride">AllowOverride</a> directive in the main configuration files.</p>



<p>The use of .htaccess files can be disabled completely by setting the AllowOverride directive to None.<br><br><span style="text-decoration: underline;"><strong>In general, you should only use .htaccess files when you don&#8217;t have access to the main server configuration files</strong></span>.<br><strong>This is typically the case when you contract a web hosting plan with a company.</strong></p>



<p><span style="text-decoration: underline;"><strong>You should avoid using .htaccess files completely if you have access to apache main server config files</strong></span>.<br>Using .htaccess files slows down Apache http server. Any directive that you can include in a .htaccess file is better set in a <a href="https://httpd.apache.org/docs/current/mod/core.html#directory">Directory</a> section (main server config files), as it will have the same effect with better performance.</p>



<p>The configuration directives found in a .htaccess file are applied to the directory in which the .htaccess file is found, and to all subdirectories thereof.<br>However, it is important to also remember that there may have been .htaccess files in directories higher up.<br>Directives are applied in the order that they are found.<br>Therefore, a .htaccess file in a particular directory may override directives found in .htaccess files found higher up in the directory tree.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
