从地址删除 /管理员,直接到子域保持路径
我很难将管理地址引导到子域,我进行了一次不错的搜索,但是一切都变得更加令人困惑。 而
简
Route::group(['namespace' => 'Admin', 'as' => 'admin.'], function () {
/*authentication*/
Route::group(['namespace' => 'Auth', 'prefix' => 'auth', 'as' => 'auth.'], function () {
Route::get('login', 'LoginController@login')->name('login');
Route::post('login', 'LoginController@submit')->middleware('actch');
Route::get('logout', 'LoginController@logout')->name('logout');
});
Route::get('/', 'HomeController@index')->name('home');
Route::get('terms-and-conditions', 'HomeController@terms_and_conditions')->name('terms-and-conditions');
Route::get('about-us', 'HomeController@about_us')->name('about-us');
Route::get('contact-us', 'HomeController@contact_us')->name('contact-us');
Route::get('privacy-policy', 'HomeController@privacy_policy')->name('privacy-policy');
Route::post('newsletter/subscribe', 'NewsletterController@newsLetterSubscribe')->name('newsletter.subscribe');
Route::get('authentication-failed', function () {
I'm having difficulty directing the admin address to the sub domain, I did a nice search but everything became more confusing. In short, I need to remove the domain.com/admin to the subdomain admin.dominio.com keeping the rest of the address so that there is no conflict or that it gets lost kkkkk
routes admin
Route::group(['namespace' => 'Admin', 'as' => 'admin.'], function () {
/*authentication*/
Route::group(['namespace' => 'Auth', 'prefix' => 'auth', 'as' => 'auth.'], function () {
Route::get('login', 'LoginController@login')->name('login');
Route::post('login', 'LoginController@submit')->middleware('actch');
Route::get('logout', 'LoginController@logout')->name('logout');
});
routes web/user
Route::get('/', 'HomeController@index')->name('home');
Route::get('terms-and-conditions', 'HomeController@terms_and_conditions')->name('terms-and-conditions');
Route::get('about-us', 'HomeController@about_us')->name('about-us');
Route::get('contact-us', 'HomeController@contact_us')->name('contact-us');
Route::get('privacy-policy', 'HomeController@privacy_policy')->name('privacy-policy');
Route::post('newsletter/subscribe', 'NewsletterController@newsLetterSubscribe')->name('newsletter.subscribe');
Route::get('authentication-failed', function () {
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题在您的htaccess文件中
The problem is in your htaccess file