httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <>
Subject Re: [users@httpd] rewrite rule tutorial on ask apache I could not understand syntax
Date Mon, 21 Jun 2010 07:44:56 GMT
On 15.06.10 18:12, Tapas Mishra wrote:
> http://
>  is a link to a tutorial which mentions following use of ReWriteRule is wrong.
> RewriteEngine On
> RewriteBase /
> RewriteCond %{HTTP_HOST} !^www\.askapache\.com$ [NC]
> RewriteRule .+{REQUEST_URI}
> I could not understand what is the mistake in the above rule?
> Can some one point what is the error which the tutorial is trying to tell.

can you tell usa what are you trying to do? Seems as another attempt to do
simple HTTP redirect to if host is not

This can be done by using third party plugins that can redirect to canonical
name (mod_redirtoservname or mod_common_redirect), or by using name-based
virtual hosting, with the first (default) virtual host redirecting to second
one, with ServerName and no ServerAlias.

Matus UHLAR - fantomas, ;
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Your mouse has moved. Windows NT will now restart for changes to take
to take effect. [OK]

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