By aisake

2019-08-13 18:29:16 8 Comments

I have recently finished a website for a customer, the site works great locally. Currently only the homepage is working. However all links return a 500 server error.

This is 1and1, and I haven't heard many good things about it. Currently I have the laravel folders for my app within a folder called webapp. the domain name points to webapp/public. I have also added the following line to my htaccess to get it to work

RewriteRule ^ /home.php [L]

which works for the homepage. I don't know much about the htaccess file, so I've messed around with a few other options such as

RewriteRule ^ /folios.php [L]

as well which is one of the links in my site, however this doesn't work.

My routes currently work like this

Route::get('/folios', '[email protected]');

However they return 500 server error


@aisake 2019-08-15 13:04:13

I did not realize that the server generated a new .htaccess file within the /webapp/ folder where I pointed the domain; I was editing the wrong .htaccess file

@Jason Houle 2019-08-13 20:18:42

Did you run composer install on the server or copy out the vendor directory? You may also want to check that your htaccess file in the public directory contains the directives that are required (

@FAKETAXI 2019-08-13 18:38:19

My suspicion is that you need to update the paths contained within public/index.php

Check out this article for instructions:

@aisake 2019-08-13 18:50:44

I tried changing the paths like it says on the link provided, however still nothing has changed unfortunately

@aisake 2019-08-13 18:55:32

I instead get the error: Fatal error: require(): Failed opening required '/homepages/12/d550837192/htdocs/webapp/public/../webapp/ven‌​dor/autoload.php' (include_path='.:/usr/lib/php7.3') in /homepages/12/d550837192/htdocs/webapp/public/index.php on line 24

Related Questions

Sponsored Content

32 Answered Questions

[SOLVED] Laravel 5 – Remove Public from URL

30 Answered Questions

[SOLVED] Laravel blank white screen

5 Answered Questions

[SOLVED] Laravel default .htaccess file will not work

  • 2013-06-21 06:26:35
  • MasterZ
  • 23346 View
  • 6 Score
  • 5 Answer
  • Tags:   .htaccess laravel

5 Answered Questions

[SOLVED] All css/img files route to the site's homepage

1 Answered Questions

Laravel url parameter returning 404 once hosted

1 Answered Questions

Internal 500 error laravel 5.2

3 Answered Questions

[SOLVED] Laravel routes & .htaccess file not working on 1and1 hosting

1 Answered Questions

[SOLVED] Laravel 403 Forbidden when uploading site

1 Answered Questions

[SOLVED] Laravel 4 .htaccess Not Rewriting URLs

Sponsored Content