Activate https on a website – SSL Code for htaccess

Use the following codes to implement SSL for WordPress and Non-Wordpress Sites into htaccess file. This will show the lock in the address bar. Method #1 – WordPress Site – htaccess: Method # 2 – Non WordPress Site – htaccess:

Apache .htaccess http redirect to https

Following piece of code can be used in a .htaccess file to direct any http request on port 80 to be directed to https for seamless https access: WordPress:

Using Apache – Secure a website or a particular subdirectory

Using Apache to secure a website or a particular subdirectory: 1. Create a password .htpasswd file on the webserver containing username and password (or a sub directory if you want security on a particular sub directory only). 2. Create .htaccess file in the sub directory […]