<IfModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymlinks
RewriteRule ^(.*) 404.php
</IfModule>
I'm forwarding all request strings to a PHP page but when the URL contain a colon like http://example.com/:requested_page then the server return a 403 error. Can anybody help me please?
The colon is usually used to indicate the port number. Use urlencode (or the equivalent) to escape it properly prior to sending it to the server.
Thanks for your answer. But I see that the WikiPedia site still have colon in it URL and this is considered as valid URL. So I'm wondering if there is any workaround here. Anybody please? Portal:Technology - Wikipedia, the free encyclopedia