I make the engine in which you want to use a colon in the URL, like in Wikipedia .

There was a problem: when you go to such an address, a 403 error pops up, ignoring all the requirements for mod_rewrite in .htaccess .
Searched in google. Many people complained about this, but I never found a solution. It was also agreed that the error appears only in windows-systems. Is it solved somehow?

 upd: Apache/2.2.15 (Win32) PHP/5.3.3 Windows XP SP3 x86 
  • You ask as user? Ask site programmers to fix. You ask as a programmer? Understand what happens with the HTTP request that comes to your site. You did not even tell us which server you are using. (Maybe even samopisny.) - VladD
  • As a programmer. Apache / 2.2.15 (Win32) PHP / 5.3.3 Windows XP SP3 x86 - kanaris
  • What happens if the %3A is sent to the server instead of a colon in the URL? Same ? - ReinRaus

3 answers 3

There are at least two solutions:

  1. recompile apache so that it does not block url s containing : (colon, colon ).
  2. run apache on an operating system other than ms / windows .

The use of a colon in the file paths in the ms / windows operating system is fraught with problems. for details, see the “error” message in the apache program .

other references found on so:

    If you are just making the engine, then why produce problems? There is a standard. The colon character is reserved for specifying the protocol and port. Not all web servers handle this character in the address normally. Apache under Windows before it suffered, I do not know how to wait.

    And even if you solve the problem now, there is no guarantee that it will not appear later. Do not go for a rake.

    • four
      @fStrange: do you mean that URIs on Wikipedia violate the RFC? If not, do not confuse the question author. - VladD

    urlencode ()