Support the ongoing development of Laravel.io →
Installation Configuration Requests
Last updated 2 years ago.
0

Hi,

yes I've read a lot of them, but they don't answer my question. It is no problem for me to remove the public folder from URL if my application run in the server root. The problem are the path variables if I move the application to a subdirectory. So my paths in the /public/index.php looks like:

require __DIR__ . '/../app1/bootstrap/autoload.php';
...
$app = require_once __DIR__ . '/../app1/bootstrap/start.php';

and the paths in the /bootstrap/paths.php looks like:

	'app' => __DIR__.'/../app1/app',

	'public' => __DIR__.'/../app1/public',

	'base' => __DIR__.'/../app1',
        
	'storage' => __DIR__.'/../app1/app/storage',

but it doesn't work! What is wrong with my paths?

Last updated 9 years ago.
0

If you are setting them up like this:

public_html
- app1
- app2
- app3
- appX

Why do you want to remove the public folder, can't you just leave it like:

thehostname/app1/public/whatever
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.