Re: Mod-rewrite problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15 November 2010 14:40, Matus UHLAR - fantomas <uhlar@xxxxxxxxxxx> 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@xxxxxxxxxxx> 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

 
 

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux