I have Drupal (7.56) installed in a subdirectory (www/html/drupal). I can access the drupal main page at my.site/drupal, yet when clicking the "Administrative Login" link it takes me to my.site/user/login (404 not found), rather than my.site/drupal/user/login. If i navigate directly to my.site/drupal/user/login (by typing it in the address bar rather than clicking the link) I am able to log in, but it then redirects me to my.site/drupal/drupal (404 not found). Everything else appears to be working fine. 

Ideally, when clicking the admin login link it should take me to /drupal/user/login, and then once logged in redirect me to /drupal. I have tried changing the .htaccess (reverted to default, rewriteBase /drupal and rewriteBase /) and settings.php, but had no success. 

Any guidance would be appreciated!

Comments

VM’s picture

Inpsect $base_url in settings.php

dibyajyoti.mallick’s picture

Hi,

I think it should work when you define your base_url in settings.php file

Or it will better to configure your site in virtual host in php configuration

Thanks  

mmjvb’s picture

When installing in a subfolder 'drupal' you need to change .htacces: RewriteBase /drupal