Skip to content
Advertisement

Laravel routes aren’t working with 1&1 [closed]

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

Advertisement

Answer

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

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement