httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jurgen <apa...@squarehosting.com>
Subject Re: [users@httpd] RewriteCond but...
Date Sun, 23 Mar 2003 14:01:22 GMT
Hi,

how about something like

RewriteCond %{QUERY_STRING} !^secret_code$

Jurgen


On Sun, 23 Mar 2003 12:01:56 +0100
Furesz Peter <the_coder@freemail.hu> wrote:

> Hi!
> 
> I want to rewrite all incoming URLs, like:
> username1.mydomain.com
> username2.mydomain.com 
> etc
> 
> EXCEPT:
> www.mydomain.com
> and IMPORTANT EXCEPTION:
> username1.mydomain.com?secret_code
> 
> 
> I have the following lines in httpd.conf
> 
>  RewriteCond %{HTTP_HOST} [^w{3}]\.mydomain\.com 
>  RewriteCond %{HTTP_HOST} (.*)\.mydomain\.com$ 
>  RewriteRule .* /foo/bar/site.php?redir=%1
> 
> This lines works, but not filter the SECRET CODE, I have to put one line
> but I don't know what. Can you help me? My first idea was this:
> 
>  RewriteCond %{HTTP_HOST} .*\.mydomain\.com\/.*\?secret_code
> 
> but I think it is not good
> 
> Thank you
> Peter
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message