I have moved two Drupal testing sites, (from one host to another) and I cannot get any links to lead to the proper pages. Every link I click on either site leads me to the home page for that site, although the address does change in the address bar. I am using Drupal 5.5 on both sites.

settings.php and .htaccess yield not clues.

Any suggestions? Thanks in advance.

Comments

pobster’s picture

Check your apache (?) vhosts is set to 'allow override all', it's possible that *all* links are not being found (and by default returned to the home page) because the .htaccess isn't being read and so the rewrite rules aren't applying? You should also check your apache (or whatever) configuration to see that the .htaccess file is specified to be defined under 'AccessFileName'.

Pobster

BlindWolf8’s picture

Thanks for the reply, but I'm on shared hosting, so I don't think I have access to the Apache vhosts, but I do have access to the .htaccess file that Drupal created. Editing that shouldn't matter, as I haven't moved the Drupal installations from one directory to another...simply to a different host with a different cPanel username. I have checked for any absolute paths that would be stored in the database that reference the old host, (since I changed the cPanel usernames) but that didn't fix it.

Any other suggestions would be appreciated.

pnlnl’s picture

a little bit off topic... but
have you been playing lately with the url redirect module?? if so, you can check the databases, or simply you can delete this module and everything will work fine...

BlindWolf8’s picture

The only thing I have enabled relating to paths is the default Drupal Path module.

tm’s picture

does resetting clean-urls, clearing cache and sessions tables do anything?

BlindWolf8’s picture

Clearing out the sessions and any cache tables didn't do anything. I'm assuming to turn clean URLs off, I would need to change s:1:"1"; to s:1:"0"; in clean_url in the variable table in the database? When I do this, I am able to navigate different parts of the site successfully, but when I go and run the clean URLs test to try and turn it back on, the address bar looks like it should be bringing me back to that page, but it boots me to the front page, and doesn't change anything.

I'm sure I'm missing something somewhere.

pobster’s picture

I hate to repeat what I said before but it really sounds though your .htaccess file isn't being read...

Pobster

BlindWolf8’s picture

How can I fix this, if possible? This all seems very odd...why would it not be reading it?

pobster’s picture

Permissions? Apache incorrectly configured? File missing altogether? There are a number of reasons why, some more obscure but usually pretty obvious... First thing to do is ... well, check? Get the .htaccess to do something funky like redirect or whatever (just something *obvious*) then at least you'll know where the culprit is.

Pobster

ceejayoz’s picture

I would contact your web host for those questions.