2 Information needed

2 Information needed

Laraship QuestionsCategory: Installation2 Information needed
amin6109 asked 3 months ago

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
laraship Staff answered 3 months ago

Hello

1) to force https please add the following code to the htaccess file under public/.htaccess

RewriteEngine On

RewriteCond %{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.

50% OFF

No Minimum, No Exceptions
Coupon Code
SUMMER05
Offer Expires  May 27th

 
GO TO STORE
close-link