Hi,

I read a security-related post that recommended changing the installation directory from "drupal" to something more cryptic as a way of preventing hackers.

I had three multi-sites working within the drupal directory and then I changed the name of the directory to something cryptic like "kasehfksdehf".

After changing the three subdomains to point at the new directory, I am experiencing the following:
1) The home pages show up just fine and I appear to be logged in as i see all my admin tabs and the link to log out.
2) One of the sites that was set up for IP banning is still banning from outside IP's so I have to assume that the site is running and connecting to the DB.
3) When I click on any of the links though (Administer in this case), I get an error page that says,

"404 Not Found

The requested URL /admin does not exist."

If I click on any of the other links, I get the same error with corresponding path/page in the message depending on what i clicked on.

I have cleared all the cache tables in the DB.

Is there a setting somewhere that tells drupal what the installation directory is named?

Help!

Thanks!

JZ

Comments

dchakrab’s picture

Possibly $base_url (or something similar...don't remember the exact variable name) in the settings.php file.

Hope that helps...do post back and let us know how it's going.

Dave.

jonnyz’s picture

I just tried changing the /admin to ?q=admin and it seemed to get me to the admin area. But I still experience the same issue when I click on any of the other links. I hope this helps!

jimmygoon’s picture

You will need to edit your .htaccess file to reflect the changes you have made to your directory structure.

jonnyz’s picture

Thanks Jimmy.

Which .htaccess, the ones in the sub-sites directories or in the main install directory?

What edits would you suggest?

JZ

jonnyz’s picture

SO I finally managed to navigate to the admin area to turn the clean URL's off by using the non-clean URL for this area. After that, I was able to navigate the site.

However, I definitely want to enable clean url's and now, when I run the clean url test, I get a similar message to the above:

"404 Not Found
The requested URL /admin/settings/clean-urls does not exist."

So it does not let me enable clean url's again. Is there a way of updating the site to let it now that i changed th name of the install directory?

Thanks!

JZ

PS: Thanks for your message above Dave. I did try commenting out the base url but it did not help. I do not think it deals with that because my base url did not change, only the name of the master drupal install directory.

jonnyz’s picture

At some point i'd changed the name of my .htaccess file to .htaccess_old. After changing it back to it's real name everything was hunky dory. Thanks for you guys who stepped in so quickly!!!