Re: Mod-rewrite problem

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

 



----- "Rudi Kramer" <rudi.kramer@xxxxxxxxx> wrote:

> Hi,
> 
> 
> I am using ubunto 8.0.4 and apache 2.2.8 and I'm having some issue
> with mod rewrite and SSL redirection.
> 
> 
> I have two objectives. The first is to redirect http://www.site.co.za
> and http://site.co.za to the url https://www.site.co.za and the second
> is to redirect all traffic for https://site.co.za to
> https://www.site.co.za .
> 
> 
> I can get the first part working perfectly using the following:
> 
> 
> 
> <VirtualHost www. site.co.za:80 >

Don't do that.

Check http://wiki.apache.org/httpd/ExampleVhosts or
http://httpd.apache.org/docs/current/vhosts/examples.html
out to see some sensible examples


For one, for the other: Why not just use Redirect?
http://wiki.apache.org/httpd/WhenNotToUseRewrite

bye,
i
-- 
Igor GaliÄ

Tel: +43 (0) 664 886 22 883
Mail: i.galic@xxxxxxxxxxxxxx
URL: http://brainsware.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[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