0

I have a website "https://www.example.com" which is suddenly showing 404 Page Not Found.

Header Footer is coming but in the body part its showing nothing but appearing a Page Not Found text.

But if I access "https://www.example.com/home" it's working fine.

Even all inner pages are working too except the front page.

I tried changing Default Front Page in Configuration > Basic Site Settings but nothing helped at all.

Also cleared cache multiple times.

Please help me!!!

2 Answers 2

0

It's seems that's your problem from your apache configuration (or nginx). Maybe this topic may help you : https://www.drupal.org/forum/support/installing-drupal/2020-05-14/can-access-the-homepage-but-everything-else-gives-404

Other documentation :

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

Comments

0

The issue was in settings.php file. The base url of the microsite settings was not mentioned correctly, also the public url was wrong.

$config['micro_site.settings']['base_url'] = 'MY_HOSTNAME';
$config['micro_site.settings']['base_scheme'] = 'HTTP OR HTTPS';
$config['micro_site.settings']['public_url'] = 'MY_HOSTNAME';

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.