httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rudi Kramer <rudi.kra...@gmail.com>
Subject Re: [users@httpd] Mod-rewrite problem
Date Mon, 15 Nov 2010 13:27:05 GMT
On 15 November 2010 14:40, Matus UHLAR - fantomas <uhlar@fantomas.sk> wrote:

>
> There is no need for mod_rewrite. the Redirect directive can do exactly the
> same with less of workload.
>
> You don't need a cannon for shooting birds, do you?



On 15 November 2010 14:40, Matus UHLAR - fantomas <uhlar@fantomas.sk> wrote:
>
> There is no need for mod_rewrite. the Redirect directive can do exactly the
> same with less of workload.
>
> You don't need a cannon for shooting birds, do you?


Depends on how big the birds are. My birds are not so big :-)

I have have changed the port 80 virtual host to use redirectmatch and it
looks much neater.

<VirtualHost *:80>
ServerName www.site.co.za
ServerAlias site.co.za

RedirectMatch ^ https://www.site.co.za/
</VirtualHost>

but I still cannot get it right to redirect the https://site.co.za redirect
to https://www.site.co.za, I think it might be my lack understanding of
regex though.

Does this look right?

RedirectMatch ^http\://bpultimateride\.co\.za
https://www.bpultimateride.co.za/


Regards
Rudi

Mime
View raw message