I have installed Drupal in 3 locations on the same server:
www.spinfl.com
www.spinfl.com/central
www.spinfl.com/south

Each time I go to www.spinfl.com/central or www.spinfl.com/south then click on a link it goes to www.spinfl.com and its theme but in the address bar it says www.spinfl.com/central/admin. I want to be in the central section to change the theme, add content, etc. but can not because I keep getting routed back to the www.spinfl.com section.

Has anyone had the same issues or have any idea what is going on?

I have installed Drupal this way before and it worked fine.

Using 1and1.com hosting - not a favorite of mine.

Comments

arhak’s picture

if you moved your site to another server and the new server doesn't supports clean urls that would be the resulting misbehavior (all the sites will take you to the root page of the server)
try this
UPDATE `variable` SET `value` = 's:1:"0";' WHERE `variable`.`name` = 'clean_url';

if it allows you to navigate your sites, then you have no clean urls support but your sites were thinking they were capable

PS: in that case the three sites will need to get clean urls disabled

Heidi Fiscus’s picture

Thank you for the response @arhak.

I understand clean URLs is the culprit. All the sites have clean URLs enabled.

The script you posted, where should I insert it? Or is it an SQL command?

arhak’s picture

that is an SQL statement

Heidi Fiscus’s picture

@arhak - I went into each .htaccess file, uncommented RewriteBass and added the subdirectory after.

So it now reads:
RewriteBase /central

It is working perfectly now!

Thanks!

arhak’s picture

oh yeah, I forgot that having it in a subdir requires to specify the base
congrats then