Laravel URL重新路由

时间:2017-06-20 10:58:54

标签: laravel routing

我在本地主机{ "ContentEncoding": null, "ContentType": null, "Data": [ { "SiteName": "Colworth" }, { "SiteName": "Donaldsons" }, { "SiteName": "Heathlands" }, { "SiteName": "HHP Portugal" }, { "SiteName": "Leythorne" }, { "SiteName": "Propagation" }, { "SiteName": "Sheeplands" }, { "SiteName": "Tuesley" } ], "JsonRequestBehavior": 0, "MaxJsonLength": null, "RecursionLimit": null } 中使用此网址。所以,目前如果我点击此URL,则会显示错误 jQuery("#site").kendoComboBox({ autoBind: true, placeholder: "Select Site...", dataTextField: "SiteName", dataValueField: "SiteName", dataSource: { transport: { read: { url: "http://api.domain.co.uk/api/locations/sitesdropdowntest", type: "jsonp" } }, schema: { data: "Data" }, serverFiltering: true } });

所以我需要把它放在网址中 - &gt; <div class="form-group"> <label class="control-label col-md-2" for="SiteId">Site</label> <div class="col-md-10"> <input id="site" /> </div> </div>

我希望如果某人点击192.168.1.5:8000/24hrcares,则会自动转到此网址:Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException。而且,除了24hrcares之外,还会有任何其他文件夹名称。

我们是否为此定义了任何特定规则?请帮帮我。

0 个答案:

没有答案