Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
The website encountered an unexpected error. Please try again later.
Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /" in Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest() (line 136 of vendor\symfony\http-kernel\EventListener\RouterListener.php).
I am moving from Drupal 7 to Drupal 9. Anyway, when installing with composer WEB folder is created where my site files are moved. This seems to imply that my site now is at mysite/web. This not where I need it. When I move files into the root directory, the site does work because it can't find the file autoload. Can you please help resolve this mystery?
I know - it is not advisable to run such old version of Drupal as 6.x (and even 7.x for that matter) for so many reasons, most important of which are security.
But for those who have no choice for whatever reason, here is a very easy and quick way to make everything work.
(not sure about if you have some different custom, non-Drupal core modules, of course).
After my hosting provider forcefully upgraded PHP to at least 7.4, my Drupal 6.33 sites stopped working (blank page).
I've managed to do so using a nginx proxy. However, none of the internal links and resources work because they always refer to "https://example.com" where they should refer to "https://example.com/drupal".
When I install Drupal 9.4.8 to a subdomain (sub.mysite.com) I get 404s in all pages except the home page. I installed the demo content that comes in built with Drupal 9. I also get 404s throughout the admin pages.
My htaccess below has a chmod of 644 and is being read.
I can't see base_url in settings.php (mentioned as a fix in Google) and I'm hosting on Digital Ocean with WHM/cPanel on Centos.
Do I need to amend the htaccess? Any suggestions please?