Urlencode forward slash 404 error
<pre><code>http://localhost/foo/profile/%26lt%3Bi%26gt%3Bmarco%26lt%3B%2Fi%26gt%3B
</code></pre>

<p>The url above gives me a <code>404 Error</code>, the url code is this: <code>urlencode(htmlspecialchars($foo));</code>, as for the <code>$foo</code>: <code>&lt;i&gt;badhtml&lt;/i&gt;</code></p>

<p>The url works fine when there's nothing to encode e.g. <code>marco</code>. </p>

<p>Thanks. =D</p>

<p>Update: I'm supposed to capture the segment in the encoded part of the uri, so a 404 isn't supposed to appear.</p>

<p>There isn't any document there, <code>marco</code> is simply the string that I needed to fetch that person's info from db. If the user doesn't exist, it won't throw that ugly error anyways.</p>

<p><strong>Slight idea what's wrong:</strong> I found out that if I used <code>&lt;i&gt;badhtml&lt;i&gt;</code>, it works just fine but <code>&lt;i&gt;badhtml&lt;/i&gt;</code> won't, what do I do so that I can maintain the <code>/</code> in the <code>&lt;i&gt;</code>?</p>

<p>It probably think of the request as <code>http://localhost/foo/profile/&lt;i&gt;badhtml&lt;**/**i&gt;</code></p>
