httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Miell" <>
Subject [users@httpd] mod_rewrite problem
Date Sat, 01 May 2004 00:35:34 GMT
The following is my v host I'm having problems with.

Basically the router logout link requests a page with a query_string of
todo=logout and I would like to use rewritecond and rewriterule to look for
this and redirect to /admin.
I am a little confused as to how to do this.

The lines with my problem are commented.

<VirtualHost *:443>
    SSLEngine On
    SSLCertificateFile C:/inetpub/SSLCert/my-server.cert
    SSLCertificateKeyFile C:/inetpub/SSLCert/my-server.key
    DocumentRoot "C:/inetpub/wwwsecure"
    ScriptAlias /cgi-bin/ "C:/inetpub/ScriptsSecure/"
    Alias /admin "C:/inetpub/wwwadmin"
    ScriptAlias /admin/cgi-bin/ "C:/inetpub/ScriptswwwAdmin/"
#    ProxyPass /admin/router
#    ProxyPassReverse /admin/router
    RewriteEngine On
    RewriteCond %{QUERY_STRING} ^todo=logout [NC]   #Problem
    RewriteRule ^$  #Problem

    RewriteRule ^/admin/router/start(.*) http://router$1 [P]
    RewriteRule ^/admin/router(.*) http://router$1 [P]

Thank you for all of you help so far,
I am most grateful for all the replies I've had and the patience people have
had with my requests.

Greg Miell

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