0

I moved app.php from web directory to root and i change the following two lines:

$loader = require_once __DIR__.'/app/bootstrap.php.cache';
require_once __DIR__.'/app/AppKernel.php';

Also i move .htaccess file from web directory to root , my problem is that now the system cannot find JavaScript and CSS files.

2
  • Why do you need this ? Commented Jun 18, 2015 at 6:32
  • Because i am deploying my website on shared hosting , so i need when the user access my website to land to home page. Commented Jun 18, 2015 at 6:33

2 Answers 2

1

In your composer.json you have these lines:

"extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web",

You need to update those and run composer update to make your bootstrap.php.cache file ready for the new structure.

Sign up to request clarification or add additional context in comments.

Comments

0

You need to move all content from "web" to "/". see @Marcel Burkhard answer

Also you need to "play" a little with .htaccess, because allowing everyone to read your config is very bad.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.