Skip to content

Instantly share code, notes, and snippets.

@oimtrust
Created August 3, 2020 04:29
Show Gist options
  • Save oimtrust/5ca1c1b1e01848162feaefa610dccd0c to your computer and use it in GitHub Desktop.
Save oimtrust/5ca1c1b1e01848162feaefa610dccd0c to your computer and use it in GitHub Desktop.
.htaccess ->config ssl
<IfModule mod_rewrite.c>
RewriteEngine On
# Force SSL
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Remove public folder form URL
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
in primary folder added index.php file and write this :
<?php
header('Location: public/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment