Q - Cloned site not finding paths

Events happening in the community are now at Drupal community events on www.drupal.org.
bobmct's picture

It was time to recreate my staging site from the live site again (I know, backwards...)
So I followed the steps I always used:
- dump live db to a sql file
- tar the live webroot directory
- translate the db sql file to change references (i.e.: s/www./staging./g)
- untar the extracted files into the staging webroot directory
- load the DB sql file into the staging db.
- modify the settings.php file to reference the staging site
- run drush updb
access the staging. site! The front page is displayed just as expected.

BUT - this time any link clicked on the front page results in the infamous 404 message. So, if a link is relative and references "/department" under normal circumstances the link would be found because it is relative to the current site's webroot.

As a result I can't even login as admin 'cause the login page cannot be found.\

I haven't run into this before on any clone I've performed (dozens of times) so what might I have forgotten to address this time?
If I hover of the same link on the live site my status bar shows the same url/path as does the staging site. But the live works and the staging doesn't.

Thinking how each of you may have cloned a site or two, was there any item not covered above that you share?

I hate to spend the weekend pondering...

Thanks all :-{

Comments

I flush the caches a couple

tommyent's picture

I flush the caches a couple of times before dumping the database. Anyway every time this happened for me was due to a missing .htaccess

Edit: or not overwriting an existing one

Right on !!!

bobmct's picture

Tommy,

Pat yourself on the back but you hit it right on the spot. I simply cp'ed the live .htaccess over and voila`.

It will be included from now on. Thanks again..

ps: I love you upside down pic

Glad it worked out for you :)

tommyent's picture

Glad it worked out for you

:) Thanks

Connecticut

Group categories

County or Region

Event Type

Featured Item (Admin Only)

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: