Advertisement

Responsive Advertisement

Make sure your deploy is OK (Safe your time). Biasanya sih kalo ga OK. ya error 500 atau dikenal SERVER ERROR

.ENV

APP_NAME='SIM MTS2'
APP_ENV=production
APP_KEY=base64:f08+oDdtGOBw3OIiZ2wbDlIFu1XjvkdWoi8rQiEtI0I=
APP_DEBUG=true
APP_URL=http:localhost

LOG_CHANNEL=stack
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=u8663663_sim2
DB_USERNAME=u8663663_sim2
DB_PASSWORD=4nug3r4h

BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"


GOOGLE_CLIENT_ID="145716195435-gm92katm4ue81ga88iag0jv54acojl1t.apps.googleusercontent.com"
GOOGLE_CLIENT_SECRET="DtaUf6ks75j_GA-oYGm3Smzx"
GOOGLE_CLIENT_REDIRECT="http://sim.mtsmu2bakid.sch.id/auth/google/callback"

FACEBOOK_CLIENT_ID="2442537849397201"
FACEBOOK_CLIENT_SECRET="97ee9e321a0c130cece61b6fe8467cd0"
FACEBOOK_CLIENT_REDIRECT="http://sim.mtsmu2bakid.sch.id/auth/facebook/callback"


TRIPAY_API_KEY=ZioA0szLjpcpXaj8kNbhfxF7uIkpzJHaV5GJTBJ5
TRIPAY_PRIVATE_KEY=oUGml-VzFol-6cWKp-wa6d4-wVijS
TRIPAY_MERCHANT_CODE=T11111


.HTACCESS

<IfModule mod_rewrite,c>

RewriteEngine On 

RewriteRule ^(.*)$ public/$1 [L] 

</IdModule>


INDEX.PHP

<?php header('Location:public/');?>


.HTACCESS (DIDALAM FOLDER PUBLIC)

<IfModule mod_rewrite.c>

    <IfModule mod_negotiation.c>

        Options -MultiViews -Indexes

    </IfModule>


    RewriteEngine On


    # Handle Authorization Header

    RewriteCond %{HTTP:Authorization} .

    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]


    # Redirect Trailing Slashes If Not A Folder...

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_URI} (.+)/$

    RewriteRule ^ %1 [L,R=301]


    # Send Requests To Front Controller...

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteRule ^ index.php [L]

</IfModule>


Posting Komentar

0 Komentar