Tag: mod_rewrite

Redirect HTTP to HTTPS in Apache

Let’s say you want all traffic to your website use secured connection. You can redirect HTTP to HTTPS in Apache like following: Using virtual hosts and Redirect directive When using SSL, you will frequently have at least two virtual hosts: one on port 80 to serve ordinary requests, and one on port 443 to serve …

Continue reading