【发布时间】:2016-11-15 22:16:19
【问题描述】:
今天我尝试在 windows iis 服务器中访问我的项目路由时遇到问题。
我的申请网址是:demo.example.com/testing/
根路由正在工作'/',但不能与另一个一起工作。
例如,如果我尝试使用 '/home/' 路由单击菜单,则 url 将类似于 demo.example.com/home' , 'testing' 不知何故消失了。
PS : 我已经删除了'public' 文件夹,将公用文件夹中的所有文件移到外部,并将其他文件移到新文件夹中。
路线示例:
Route::get('/', 'frontend\frontController@index');
Route::get('/login', 'frontend\frontController@login');
感谢您的帮助!
【问题讨论】:
-
发布完整的
routes.php -
检查上面的更新内容
-
你检查过.htaccess文件吗?