Current location: Hot Scripts Forums » Other Discussions » Web Servers » URL Rewrite leads to 403 error?


URL Rewrite leads to 403 error?

Reply
  #1 (permalink)  
Old 03-09-10, 04:53 AM
Mythvn Mythvn is offline
Wannabe Coder
 
Join Date: Jan 2006
Posts: 111
Thanks: 2
Thanked 0 Times in 0 Posts
URL Rewrite leads to 403 error?

Code:
<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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-09-10, 03:40 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-09-10, 09:05 PM
Mythvn Mythvn is offline
Wannabe Coder
 
Join Date: Jan 2006
Posts: 111
Thanks: 2
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by wirehopper View Post
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ and MSSQL tutorials? scott2500uk C/C++ 8 05-11-09 03:33 AM
[SOLVED] 500 Internal Server Error - Please help Dawn Perl 15 07-08-08 12:08 PM
Syntax Error Nikas Database 4 05-15-08 11:48 AM
create clean URL with .htaccess (Rewrite Engine) studenteye Web Servers 1 03-09-07 05:07 AM


All times are GMT -5. The time now is 01:57 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.