How to redirect a website using .htaccess?
Redirect requests from http://mydomain.com to http://mydomain.com/subdirectory i.e. redirecting requests from main domain to a sub-directory.
Redirect all http (80) requests of a domain to https (443) i.e. redirecting requests from non-secure port to a secure port.