Laravel路由不工作1和1 [英] Laravel routes aren't working with 1&1

查看:138
本文介绍了Laravel路由不工作1和1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个很多很多很多的话题,但我必须说,没有一个是帮了我很多。

Many many many topics about this, but I have to say that none are helping me a great deal.

我有Laravel和引导一个网站上传到我的根1和文件夹; 1。我的根目录是这样的:

I have a website with Laravel and Bootstrap uploaded to my root folder of 1&1. My root directory looks like this :

  • 应用
  • 在引导
  • 日志
  • 公开
  • 项目
  • 厂商
  • 工匠
  • composer.json
  • composer.lock
  • CONTRIBUTING.mu
  • readme.md
  • composer.phar
  • info.php的
  • server.php
  • phpunit.xml
  • app
  • bootstrap
  • logs
  • public
  • List item
  • vendor
  • artisan
  • composer.json
  • composer.lock
  • CONTRIBUTING.mu
  • readme.md
  • composer.phar
  • info.php
  • server.php
  • phpunit.xml

通过公共目录被访问的​​意见的方式,我指着我的浏览器domain.co.uk/public~~V,并且工作精绝!主页的负载,并有似乎没有问题。

With the public directory being the way to access the views, I am pointing my browser to domain.co.uk/public, and that works absolutely fine!!! The home page loads, and there appears to be no problems.

然后我点击一个链接,当然它会梨形,我得到的1和1此域名刚刚注册的我以为是404从做一些研究,我可以看到的.htaccess中在/ public目录可能是问题,但我没有以防万一改变任何东西。

I then click a link, and of course it goes pear shaped, I get the 1&1 "This domain has just been registered" which I assume is the 404. From doing some research, I can see that .htaccess in the /public directory could be the issue, but I haven't changed anything just in case.

我很抱歉,如果这是一个相当孤立的事件,虽然我看到很多遇到问题1和人; 1,主要的问题是,他们没有实时聊天功能,这是荒谬的这个时代

I am sorry if this is a rather isolated incident, although I see lots of people having trouble with 1&1, the main issue being they have no live chat feature which is rediculous in this day and age.

在预先感谢!!!!!

Many thanks in advance!!!!!

推荐答案

在搜索,编码,和所有废话了几个小时......我找到了。

After a few HOURS of searching, coding, and all that crap... I found it.

我的基本包1和1只允许我使用一个目录,所以不是用 /公共我调到一切从 /公 / ,然后改的路径在 /bootstrap/paths.php 的index.php

My basic package with 1&1 only allows me to use one directory, so instead of using /public I transferred everything from /public to /, then changed the paths in /bootstrap/paths.php and /index.php.

在接触1和1,他们当然劝我升级包,以及你猜怎么着1和1,我已经无需支付更多的做了,并有一个全功能的远程服务器99便士一个月。质量。

Upon contacting 1&1, they of course advised me to upgrade the package, well guess what 1&1, I have done it without paying more, and have a fully functional remote server for 99p a month. Quality.

不管怎样,谢谢堆垛机!

Thanks anyway stackers!!!

这篇关于Laravel路由不工作1和1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆