httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: Redirecting URLS...
Date Thu, 15 Aug 2002 14:12:54 GMT
>From: Matthijs Rohs []
>When I put this in my .htaccess (mod_rewrite is loaded):
>RewriteCond %{HTTP_HOST} ^$
>RewriteCond %{REQUEST_URI} !^/home/
>RewriteRule (.*) /home/$1
>Then when someone loads that person will 
>see what's in so it is possible with .htaccess.
>So I thought it was possible, with mod_rewrite for example, to do the
>same with to
>Guess not according to you :)

It depends... You can only rewrite requests which end up in your directory. So it must be
that your ISP has made a ServerAlias of

If this is true, then without your rewrite rule, should lead to the same
site as

So if your ISP will make a ServerAlias too, then you can do a rewrite rule as
well if you want to map onto a subdirectory.

It all depends on your server config - if is already a ServerAlias of your primary
domain name ( then yes, you can rewrite it because is already leads into your directory.
However, if it does not lead into your directory already, you cannot make it do so with out
altering the server config.


Owen Boyle

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message