Apache Server configuration support - Empty query string if containing letters

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > October 2007 > Empty query string if containing letters





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 Empty query string if containing letters
Frank Ehrlacher

2007-10-14, 1:35 am

Hi,
I'm getting desperate since upgrading my local machine to apache 2.2.4 - a
..htacess/"modrewrite" runing perfectly on my webserver (apache 1.3.33) won't
run with my apache 2.
The bizarre thing - it runs if the $1/q1-query string only contains numbers
and the "-", but it won't run if it contains any letters.

Example: The .htaccess is like:
---
RewriteEngine on
Options FollowSymLinks
RewriteCond %{QUERY_STRING} test=([a-zA-Z0-9\-]+)
RewriteRule ^listing\.php$ site_%1.htm? [R=301,L]
RewriteRule ^site_([a-zA-Z0-9\-]+)\.htm$ listing_2.php?test=$1 [L]
---

If the URL is like site_23-12.htm - it runs perfectly.
BUT:
If the URL ist like site_a.htm - it gets an empty query string.

What mistake I'm doing?
(sorry for my poor english - I'm German and a newbie to apache-webserver's)

Thanks for ANY help!

Frank

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com