in your filesystem, and would otherwise return HTTP 404 (Not Found).
For example</p>
<div class="example"><p><code>
- <code>FallbackResource default.php</code>
+ <code>FallbackResource /not-404.php</code>
</code></p></div>
<p>will cause requests for non-existent files to be handled by
- <code>default.php</code>, while requests for files that exist
+ <code>not-404.php</code>, while requests for files that exist
are unaffected.</p>
+ <p>It is frequently desirable to have a single file or resource
+ handle all requests to a particular directory, except those requests
+ that correspond to an existing file or script. This is often
+ referred to as a 'front controller.'</p>
+ <p>In earlier versions of httpd, this effect typically required
+ <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>, and the use of the <code>-f</code> and
+ <code>-d</code> tests for file and directory existence. This now
+ requires only one line of configuration.</p>
+ <div class="example"><p><code>
+ <code>FallbackResource /index.php</code>
+ </code></p></div>
+ <p>Existing files, such as images, css files, and so on, will be
+ served normally.</p>
+ <p>In a sub-URI, such as <em>http://example.com/blog/</em> this
+ <em>sub-URI</em> has to be supplied as <var>local-url</var>:</p>
+ <div class="example"><p><code>
+ <code>
+ <Directory /web/example.com/htdocs/blog><br />
+ <span class="indent">
+ FallbackResource /blog/index.php<br />
+ </span>
+ </Directory>
+ </code>
+ </code></p></div>
</div>
</div>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 421100:1044522 (outdated) -->
+<!-- English Revision: 421100:1055866 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
<?xml version="1.0" encoding="EUC-KR" ?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
-<!-- English Revision: 151408:1044522 (outdated) -->
+<!-- English Revision: 151408:1055866 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.tr.xsl"?>
-<!-- English Revision: 962989:1044522 (outdated) -->
+<!-- English Revision: 962989:1055866 (outdated) -->
<!-- =====================================================
Translated by: Nilgün Belma Bugüner <nilgun belgeler.org>
Reviewed by: Orhan Berent <berent belgeler.org>