I have a subdomain http://206.217.128.227/~obts/ . I hosted my laravel project on this subdomain . This domain's cpanel structer is
When I click on any href property the url is http://206.217.128.227/something but then i have 404 error . But if I give url manually http://206.217.128.227/~obts/something then i get the correct page. I have pasted public folder's content on public_html folder. And all other contents of project on laravel folder. I modified index.php file as
require __DIR__.'/../laravel/bootstrap/autoload.php';
$app = require_once __DIR__.'/../laravel/bootstrap/app.php';
I added paths.php file manually and modified 'public' property as
'public' => __DIR__.'/../public_html',
My .env file is
APP_ENV=local
APP_DEBUG=true
APP_KEY=something
APP_URL=http://206.217.128.227/
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=obts_data
DB_USERNAME=obts_admin
DB_PASSWORD=password
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
Now what wrong i am doing ?