Redirect HTTP to HTTPS via .htaccess Laravel
<?php
RewriteEngine On
RewriteRule ^(.*)$ public/ [L]
?>
Way code above it redirect to http, if you want http to https,
you can using following code above
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://www.coderfunda.tk/ [L,R=301]
RewriteRule ^(.*)$ public/ [L]
</IfModule>
0 comments:
Post a Comment
Thanks