httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Problem with RewriteRule
Date Tue, 16 Apr 2002 21:03:32 GMT

I am having a problem with Rewrite Rule.
  I what the user to be able to type in there domain name and then
  admin and be redirected to a control panel on the same server but
  running on a different port.
  Like so

  What I have below works but it changes the http://userdomainname to
  I what it to stay the same as what they type in and not change to
  the main site on the server. should I use a variable in the lines
  below to do this and if yes how

RewriteEngine On
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/admin/?$
RewriteRule ^/siteadmin/?$

In the VirtualHost settings
I have this
DocumentRoot /usr/sites/
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^$
RewriteCond %{HTTP_HOST}                !^$
RewriteRule ^/(.*)            $1
RewriteOptions inherit


Best regards,

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

View raw message