httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg" <>
Subject [users@httpd] Redirection trick with querystrings
Date Thu, 08 Jan 2004 12:42:24 GMT


This may be a tricky one...I'm trying to use either RewriteEngine/Rewrite or
RedirectMatch (whatever works) to do the following:

When a URL of the form

arrives, I want the output to be

There's a small mixup with the 'scripts' in the path, but I've solved it and
it's not
related to my problem. The problem: As you can see, I want to 'capture' the
querystring and make it part of the output URL. (Yes, I want to get rid of
the script, the site will run statically) Is this possible? Do either
RewriteXXX or RedirectMatch support
something like that, separating the querystring and enable me to use them as
strings to be attached?

For example, when I use

RewriteRule redir\.pl?(.*)$1

I get

which means the querystring has been picked up as querystring and the
questionmark is still there. Now, the only thing I want is to get rid of
that questionmark, so the URL would be

Any ideas? Is this possible?

Thanks in advance,

Greg Dimitriadis
Textor Webmasters
Tel: +44 20 8400 9362
Fax: +44 20 8742 0010

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message