Hi,
I have 2 points for which currently i need your help
1) Instead of http i want to use https:// any option of this in admin ?
2) I have changed my domain i did told about this before please change my LIVE domain: spirit.pk this is the domain on which i am using my code.
Thanks,
Amin
1 Answers
Hello
1) to force https please add the following code to the htaccess file under public/.htaccess
RewriteEngine OnRewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www.
# [NC] is a case-insensitive match
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
2) Your license is now attached to the domain above.
Please login or Register to submit your answer