Https routes not working

Published 11 months ago by madala

Hi, I have enabled the ssl cerficate for my site after that I can able to see only login page when I tried to login it says requested url was not found on this server . When disable ssl certificate everything working fine.

Can any one please help me with this...

arabsight

I'm assuming its a url generation issue (laravel is generating urls as http not https), if so you can force https generation using: URL::forceScheme('https'); for example in your AppServiceProvider:

class AppServiceProvider extends ServiceProvider
{
    public function boot()
    {
        if (App::environment('production')) {
            URL::forceScheme('https');
        }
    }
}
madala

@arabsight I have tried this one but is not working....

hzuluaga

madala Hello , have you solved your problem? I have the same one...

hzuluaga

Sorry , @arabsight have u solved this problem? I have the same

Please sign in or create an account to participate in this conversation.