Redirect http:// to https://
Posted by Santhosh Kuma on April 10th, 2007 * * * * 3 votos
I have been looking online for some time to redirect http:// URL to https:// automatically. So when user request for cripperz.com it will be redirected to https://cripperz.com. After several tries this is what i have came up with :
1 2 3 | RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} |
- Open your preferred editor
- Copy-paste text and save as . htaccess
- Upload the file to your root directory (where your main index file is located)
- Lastly, CHMOD the file to 775 or 777
You have got yourself a redirection ![]()
~Happy Coding~
Recent Comments