have recently renamed the root folder of a development Drupal site from:
www.example.com/foo/
to
www.example.com/bar/
The site stayed on the same host. During this transition, I made sure to include the .htaccess file. I also updated $base_url in sites/default/settings.php to the new filesystem path. As a result, The homepage works just fine, and all hyperlinks on the homepage go where they should ( example.com/bar/content/ ). Unfortunately, clicking on any the hyperlinks sends me to an error page:
Not Found The requested URL /foo/index.php was not found on this server.
This looks like a misconfiguration, but all sources I can see only site the .htaccess file and $base_url as possible points of failure. What else should I be checking? Thanks.
以下是解决方法
Props to Shoaib Nawaz for suggesting that I look at my .htaccess file again. My RewriteBase variable within my .htaccess file was still referencing the old location.
Old configuration:
# RewriteBase /foo
New configuration:
RewriteBase /bar
Note that if 'foo' was a default directory name, such as 'drupal' or 'acquia', you will need to uncomment the RewriteBase line and modify it to match your new (nondefault) directory name. This was the case for me, so I didn't even think to check this aspect.
What is misconfigured when Drupal homepage works ok, but all links fail?
have recently renamed the root folder of a development Drupal site from:www.example.com/foo/to www.example.com/bar/The site stayed on the same host. During this transition, I made sure to incl