You need to make your links relative to the root, like so:
<a href="/send_message.php">link</a>
Note the slash before send_message.php
.
Blixt
2009-06-21 16:56:32
You need to make your links relative to the root, like so:
<a href="/send_message.php">link</a>
Note the slash before send_message.php
.
I personally only see one solution: Just make all your links absolute. It's not directly a problem with mod_rewrite, but the browsers way of interpreting these links. From their perspective you have a directory structure and they interpret the relative position accordingly.
Other solutions include a BASE href or just rewriting all the page elements that can be referenced by the imaginary context root you're showing the client.