I have a drupal site, here: http://deandi.com/adventure

I am attempting to move it to a new host, here: http://82.110.105.76/deandi.com/adventure/

Clicking on any links at the new location yields this:

"Not Found

The requested URL /home/sites/deandi.com/public_html/adventure/index.php was not found on this server."

The environment analyzer at the old site shows:
DOCUMENT_ROOT = /home/deandi/public_html
SCRIPT_FILENAME = /home/deandi/public_html/cgi-bin/env.cgi

but at the new site:
DOCUMENT_ROOT = /var/www/html
SCRIPT_FILENAME = /home/sites/deandi.com/public_html/env.cgi

Are my "not found" errors at the new site a result of the root and path being different, and if so, is there anything I can do about it? Thanks in advance.

Andi

Comments

cog.rusty’s picture

Your site does seem to work without clean URLs.

For example http://82.110.105.76/deandi.com/adventure/tracker does not work
but http://82.110.105.76/deandi.com/adventure/?q=tracker works

If clean URLs are enabled, I would disable them and then I would try to find out if .htaccess exists and works, if apache rewrites work, and if Allowoverride All.

Cerel’s picture

Well, it seems you basically have two problems :

  • When clicking on a link, for example "A Flower Game - updated!". The link seems correct (at least built correctly), but the "not found" error pages says the link "/home/sites/deandi.com/public_html/adventure/index.php" was not found. Based on what you said, it's your old path. That seems strange to me as drupal doesn't store that path (at least not in it's config, if I'm not wrong).
  • That error made me think of another thing, maybe it's just a "clean url" problem. If instead of using "http://82.110.105.76/deandi.com/adventure/node/142" you use "http://82.110.105.76/deandi.com/adventure/?q=node/142" then the links works again.

So basically your problem is related to "clean urls". Deactivate it in the admin section and reactivate it once you get clean urls to work again.
Maybe you forgot to upload the ".htaccess" file (it's usually hidden, so maybe you didn't saw it), or maybe drupal stored the old path in it (I haven't looked yet how drupal handles the clean urls, so maybe the path is stored in the htaccess file).

At least for now you can make your site work.

ahaze’s picture

Thanks both for the input. .htaccess did make it over in the move, and I was able to disable clean URLs to make things work temporarily until I find out from the host whether or not apache mod_rewrite is enabled. Thanks!