Laravel routes aren't working with 1&1

北城余情 提交于 2019-12-06 12:45:04

问题


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

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

  • app
  • bootstrap
  • logs
  • public
  • List item
  • vendor
  • artisan
  • composer.json
  • composer.lock
  • CONTRIBUTING.mu
  • readme.md
  • composer.phar
  • info.php
  • server.php
  • phpunit.xml

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.

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.

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!!!!!


回答1:


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

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.

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!!!



来源:https://stackoverflow.com/questions/23172302/laravel-routes-arent-working-with-11

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!