<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://halfgeek.org/wiki/index.php?action=history&amp;feed=atom&amp;title=.htaccess</id>
	<title>.htaccess - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://halfgeek.org/wiki/index.php?action=history&amp;feed=atom&amp;title=.htaccess"/>
	<link rel="alternate" type="text/html" href="https://halfgeek.org/wiki/index.php?title=.htaccess&amp;action=history"/>
	<updated>2026-05-28T12:22:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://halfgeek.org/wiki/index.php?title=.htaccess&amp;diff=105&amp;oldid=prev</id>
		<title>161.253.47.104 at 21:45, 30 September 2005</title>
		<link rel="alternate" type="text/html" href="https://halfgeek.org/wiki/index.php?title=.htaccess&amp;diff=105&amp;oldid=prev"/>
		<updated>2005-09-30T21:45:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 21:45, 30 September 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot; &gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This all depends on which MIME types (and pseudo-types) the server has set up.  &amp;lt;code&amp;gt;cgi-script&amp;lt;/code&amp;gt; is usually the type for CGI scripts.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This all depends on which MIME types (and pseudo-types) the server has set up.  &amp;lt;code&amp;gt;cgi-script&amp;lt;/code&amp;gt; is usually the type for CGI scripts.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=mod_rewrite:  Pretend the user typed some other URL...=&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[mod_rewrite]] is a particularly useful tool for tricking the user agent.  The point is to allow a user to access a URL by using another.  The net effect is almost the same as a redirect, except that no redirect happens&amp;amp;mdash;the correct content is automatically passed through!  See [[mod_rewrite]].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key halfgeek_org_1-kb2_:diff::1.12:old-104:rev-105 --&gt;
&lt;/table&gt;</summary>
		<author><name>161.253.47.104</name></author>
		
	</entry>
	<entry>
		<id>https://halfgeek.org/wiki/index.php?title=.htaccess&amp;diff=104&amp;oldid=prev</id>
		<title>161.253.47.104 at 00:42, 26 September 2005</title>
		<link rel="alternate" type="text/html" href="https://halfgeek.org/wiki/index.php?title=.htaccess&amp;diff=104&amp;oldid=prev"/>
		<updated>2005-09-26T00:42:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Some defaults=&lt;br /&gt;
&lt;br /&gt;
 Options +ExecCGI +MultiViews -Indexes&lt;br /&gt;
&lt;br /&gt;
ExecCGI allows CGI programs to be run in this directory.&lt;br /&gt;
&lt;br /&gt;
MultiViews allows Apache to process a request by guessing a file extension; i.e., &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/images/first&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; could lead to either &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/images/first.jpg&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/images/first.png&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, whichever is available.&lt;br /&gt;
&lt;br /&gt;
Indexes allows web users to see the directory listings in a directory.&lt;br /&gt;
&lt;br /&gt;
=Permissions=&lt;br /&gt;
&lt;br /&gt;
The Files directive can be used to conveniently hide files that ought not be visible to the outside world.  This directive hides Perl modules and POD documents in this directory and all subdirectories (excepting perhaps subdirectories with their own .htaccess files):&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Files ~ &amp;quot;\.(pm|pod)$&amp;quot;&amp;gt;&lt;br /&gt;
   Order allow,deny&lt;br /&gt;
   Deny from all&lt;br /&gt;
 &amp;lt;/Files&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you really want to make sure a file stays hidden on the web, prefix its filename with &amp;quot;.ht&amp;quot;.  Apache comes standard making all files that begin with .ht invisible (using the same mechanism as above, actually).&lt;br /&gt;
&lt;br /&gt;
=ForceType: Pretend a file has a different type=&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;d like to create a custom file extension for, say, a PHP or CGI script, ForceType is a nice tool.  To use this to force files with the extension &amp;lt;code&amp;gt;.pro&amp;lt;/code&amp;gt; to be used as (Apache-executed) PHP scripts, something like this should work:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Files ~ &amp;quot;\.pro$&amp;quot;&amp;gt;&lt;br /&gt;
   ForceType application/x-httpd-php&lt;br /&gt;
 &amp;lt;/Files&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This all depends on which MIME types (and pseudo-types) the server has set up.  &amp;lt;code&amp;gt;cgi-script&amp;lt;/code&amp;gt; is usually the type for CGI scripts.&lt;/div&gt;</summary>
		<author><name>161.253.47.104</name></author>
		
	</entry>
</feed>