You are on page 1of 2

Http to HTTPS :

1.buka .htacces di folder public ( domain / sub domain )

2.Copy paste taruh di baris paling atas , klik save changes

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

Setting index.php ( folder public ) .

// require __DIR__.'/../vendor/autoload.php';
require __DIR__.'/../ids-laravel-fahmi/vendor/autoload.php';

// $app = require_once __DIR__.'/../bootstrap/app.php';


$app = require_once __DIR__.'/../ids-laravel-fahmi/bootstrap/app.php';

$kernel->terminate($request, $response);
$app->bind('path.public', function() {
return __DIR__;
});

Setting .env (databae):

APP_URL=http://ids.fahmi.portofolio.masuk.id
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=portofol_ids_fahmi
DB_USERNAME='portofol_ids'
DB_PASSWORD='!SRnF-#MU#rI'
Send email using hosting

MAIL_MAILER=smtp
MAIL_HOST=tokobagus.tech.masuk.id
MAIL_PORT=465
MAIL_USERNAME=noreply@tokobagus.tech.masuk.id
MAIL_PASSWORD=nT0MA!~BzjrY
MAIL_ENCRYPTION=ssl
MAIL_FROM_NAME=TokoBagus
MAIL_FROM_ADDRESS=noreply@tokobagus.tech.masuk.id

You might also like