I've got a fresh install of 7.0 on an Apache server version1.3.42 (Unix), PHP 5.2.15, MySQL 5.0.91. mod_rewrite and PDO extensions both OK. I've got the following rewrite rule in public.html/.htaccess, the same one that I've been using for all of my D6 sites.

RewriteRule (.*) drupal/$1 [L]

All works fine until I change the $base_url in settings.php to just the top level domain (dropping the /drupal). At this point some odd things happen.

When accessing the admin pages, say admin/structure, via the menu it attempts to go to the overlay page before the url changes to the www.mydomain.net/tructure and I'm taken to the homepage. Likewise for config page it'd be /onfig etc.

If I go to the user page or just a piece of content via the menu it just takes me to the homepage but the url in the browser looks OK.

I can get around the site OK if I type in the full url (mydomain.net/drupal/admin/config). I disabled all contributed modules and the path module, same thing happens.

Any clues?

Comments

mermentau’s picture

I have the .htaccess as it ships for Drupal 7.0 and $base_url = 'http://www.drupal.example.com'; // NO trailing slash! in settings.php. Drupal is installed in /html_public/drupal and all seems to work well.