<p>The example given here will rewrite any request to
<code>index.php</code>, giving the original request as a query string
argument to <code>index.php</code>, however, if the request is already
-for <code>index.php</code>, this rull will be skipped.</p>
+for <code>index.php</code>, this rule will be skipped.</p>
<div class="example"><p><code>
RewriteCond %{REQUEST_URI} !index\.php<br />
<p>
The target (or substitution string) in a RewriteRule is assumed to be a
-file path, by default. The use of the [PT] flag causes it to be trated
+file path, by default. The use of the [PT] flag causes it to be treated
as a URI instead. That is to say, the
use of the [PT] flag causes the result of the <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> to be passed back through
URL mapping, so that location-based mappings, such as <code class="directive"><a href="../mod/mod_alias.html#alias">Alias</a></code>, for example, might have a chance to take
source code as plain text, if requested in a particular way:</p>
<div class="example"><p><code>
-# Serve .pl files as plan text
+# Serve .pl files as plain text
RewriteRule \.pl$ - [T=text/plain]
</code></p></div>
<p>The example given here will rewrite any request to
<code>index.php</code>, giving the original request as a query string
argument to <code>index.php</code>, however, if the request is already
-for <code>index.php</code>, this rull will be skipped.</p>
+for <code>index.php</code>, this rule will be skipped.</p>
<example>
RewriteCond %{REQUEST_URI} !index\.php<br />
<p>
The target (or substitution string) in a RewriteRule is assumed to be a
-file path, by default. The use of the [PT] flag causes it to be trated
+file path, by default. The use of the [PT] flag causes it to be treated
as a URI instead. That is to say, the
use of the [PT] flag causes the result of the <directive
module="mod_rewrite">RewriteRule</directive> to be passed back through
source code as plain text, if requested in a particular way:</p>
<example>
-# Serve .pl files as plan text
+# Serve .pl files as plain text
RewriteRule \.pl$ - [T=text/plain]
</example>