Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Empty query string if containing letters

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
mod_rewrite: how to remove an empty parameter from a query.. - hello, after searching for many hours, I decided to ask for help. I hope somebody can point me to the right I have a URI with a query like: or I want..

Not Getting Query String - Hello i have apache server.I am executing my cgi as follows i would expect to get in my script variable currently i am getting null string does any..

Rewrite URI with query string, somewhat recursive - Hello list, I'd like to rewrite so that it goes to Further, should then rewrite so that loads 'behind the scenes' (ie, is the canonical URL). Here are my rules from..

mod_rewrite redirect without query string parameters - Hi, I am trying to use to redirect some old URLs to new ones. I need to redirect a URL like to simply all' with no query string Using the following adds the ? id=2 to the end of the URL but I want a..

mod_rewrite and non-english letters / alphabets - HELP! - ok I try this in my .htaccess file on my RH Linux server with Ensim: Options on [QSA] Then type this in the browser: This is
Next:  Apache: How to extract userid/password for use in Perl?  
Author Message
Frank Ehrlacher

External


Since: Oct 04, 2005
Posts: 5



(Msg. 1) Posted: Sat Oct 13, 2007 9:56 pm
Post subject: Empty query string if containing letters
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: Empty query string if containing letters 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]