What is incorrectly configured when the Drupal homepage is working fine, but all links are broken?

I recently renamed the root folder of a Drupal development site:

www.example.com/foo/

to

www.example.com/bar/

The site remained on the same host. During this transition, I definitely included the .htaccess file. I also updated $ base_url in the /default/settings.php sites to a new file system path. As a result, the site works very well, and all the hyperlinks on the main page go where they should (example.com/bar/content/). Unfortunately, clicking on any hyperlink sends me to an error page:

Not Found
The requested URL / foo / index.php was not found on this server.

This seems like a misconfiguration, but in all the sources I can only see the .htaccess file and $ base_url as possible points of failure. What else should I check? Thank.

+3
source share
5 answers

Shoaib Nawaz support for looking at my .htaccess file again. My RewriteBase variable in my .htaccess file still referenced the old location.

Old configuration:

# RewriteBase / foo

New configuration:

Rewritebase / bar

, "foo" , "drupal" "acquia", RewriteBase () . , .

+2

.

joomla, () (drupal) .

, vhost drupal.

, vhost Overriding:

<Directory /var/www/xxx/>
    Options -Indexes FollowSymLinks MultiViews
    **AllowOverride None**
    Order allow,deny
    allow from all
</Directory>

AllowOverride None β†’ AllowOverride All

...: -)

+4

. Max, httpd.conf apache, , Cpanel.

Drupal , - Drupal, , , , , :

access_compat_module actions_module alias_module allowmethods_module asis_module auth_basic_module auth_digest_module authn_core_module authn_file_module authz_groupfile_module authz_user_module
autoindex_module cache_disk_module
cache_module cgi_module
dir_module env_module file_cache_module
include_module isapi_module log_config_module mime_modulegotiation_module rewrite_module setenvif_module userdir_module
vhost_alias_module

, . , . ! : D

0

Source: https://habr.com/ru/post/1777728/


All Articles