I have a site in a directory "root/test" and everything works fine. Then I copied the site in the "root" directory, .htacces included, and a strange series of problems appeared. I have clean urls enabled.
- the page /admin/ returns "Forbidden access" but I can access specific subpages, like "settings" or build.
- the base_path() function return nothing
- fckeditor css file path is correct, but the file is not loaded.
- fckeditor in the root website is not appearing at all
- the previously working fckeditor css file is not loaded anymore even in the other website under the directory "test"

Anyone? Any idea?

Comments

Anonymous’s picture

- there may be multiple things wrong to explain all that weirdness
- did you verify that everything copied correctly?
- proper permissions on the 'files' directory?
- apache configured to allow 'AllowOverride All' in your root directory?

clemente’s picture

Thanks for your reply.

I did the same site relocation already for another one from "root/test2" to "root/final" and everything went fine. Only when I moved this under the root problems appeared.
AllowOverride all should be fine since it is reading the new .htaccess in the root.
Permissions are everywhere 770 and owner wwwrun.

I tried to set manually the base_path() return to "http://www.mydomain.org" and at least the fckeditor editor is now loading, but still I have problems with the "admin"page.

I am very frustrated. After day of work on the test website...
BTW, I had many problem with base_path() and file link with WEBFM. I had to change them manually in the database.

clemente’s picture

I was thinking that an "admin" directory is already present under the root, and that probably apache tries to serve that first. But the strange thing is that the directory was already there when the drupal 4.7 version was used.
With the previous version I was not using the clean urls. So i guess that this could be the problem.
But: how could I change the "admin" link to something else like "myadmin"?

pbarnett’s picture

Hi!

I had exactly this problem; in my case it was solved by changing RewriteBase in my .htaccess file from /myfolder to /

Just a thought...

Pete.

Anonymous’s picture

Does /?q=admin/logs/status load, and if so, does it complain about anything?
You could try disabling clean-urls to see if the issues are resolved. /?q=admin/settings/clean-urls