This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

rio14075
rio14075

Hi there,

Within Routes.php file inside a plugin directory I have few lines like below (for log out in this case). When I test this line on my local machine with the domain mysite.dev, for example, it works fine. But when I try this on a remote server with subdomain such as dev.mysite.com it just returns 404 page.

Route::group(['prefix' => 'account/'], function() {
    Route::get('logout', [
        'uses' => 'RainLab\User\Components\Session@onLogout'
    ]);
});

I have checked app.php and the line 32 has been changed to below.

'url' => 'http://dev.mysite.com/',

Also I tried to surround the above code with route grouping like below but this did not work either.

Route::group(['domain' => 'dev.mysite.com'], function () {
    Route::get('account/logout', function () {
        'uses' => 'RainLab\User\Components\Session@onLogout'
    });
});

Could anyone know where I am going wrong?

Last updated

alxy
alxy

Does the regular routing of the CMS work? So do you pages and the backend work fine?

rio14075
rio14075

All other functions seems to be working fine - Pages, Content, backend login/logout etc. So far this routing is the only thing that does not work.

Last updated

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.