Apache Server configuration support - Using a colon in a RewriteRule

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > December 2005 > Using a colon in a RewriteRule





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Using a colon in a RewriteRule
correo@ironcito.com

2005-12-27, 7:50 am

Hello:

Can I use a colon ( in a RewriteRule?

If I try, for example, rewriting

/Product:1

to

/products.php?id=1

I get a '403 Forbidden' error. Yet the exact same rule with an =
instead of a : works perfectly. I'm doing this on Apache 2.0.55 on
Win32. Maybe this problem doesn't occur on Linux?

Cheers,

Diego

Robert Ionescu

2005-12-27, 6:10 pm

correo@ironcito.com wrote:
> Can I use a colon ( in a RewriteRule?


Yes.

> I get a '403 Forbidden' error. Yet the exact same rule with an =
> instead of a : works perfectly. I'm doing this on Apache 2.0.55 on
> Win32. Maybe this problem doesn't occur on Linux?


Right. Not all chars are working/allowed in the win32 environment. But
this is not a problem with the RewriteRule, the 403 is generated
directly after Apache did receive the request. This problem does also
exist with the German "umlaute" äöü etc.

--
Robert
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com