Hi i have migrated my site from localhost to my server it's showing my home page so the database is ok but that's it i cannot login or goto any page as i get the error: 404 Not Found
The server can not find the requested page: can anyone tell me what ive done wrong or need to do, the client is pulling his hair out with me so need to resolve asap, many many thanks in advance please help im new to drupal and im totally stuck thank you.

Alistair

Comments

anotherdave’s picture

Are you forgetting that you've (possibly) turned off Clean URLs for migration & that you have to log in at [SITE ROOT]/?q=user?

Maybe you should outline the steps that you've taken so far.

Dave

The General’s picture

ok i got the hosting details - created a new database exported from php myadmin as a sql file from my local machine and uploaded to the new database all sees ok ive then uploaded everything from my machine via ftp into new site updated the settings.php file to point to new database and i thought great as the home page appeared (apart from an image missing) tried to log-in got 404 error and same when trying any page link all say the same just tried what you suggested but same error

anotherdave’s picture

em, have you checked your database to ensure all the tables have copied across correctly?
Has the .htaccess file been uploaded?

The General’s picture

all the tables have copies but you have got me on the .htaccess file wheres that? Sorry if that sound stupid but hey

anotherdave’s picture

no, it's cool.

.htaccess files are hidden by default - but you need to make sure this is also uploaded to the root of your codebase. It controls things like URL rewrites, permissions & other things I don't understand! =)

You'll need to turn on 'show hidden files' or equivalent in your FTP client & make sure to put this file up on your server.

Dave

The General’s picture

Thought you were on to something then ive uploaded the said file empted cache etc but still the same, i should have been a plumber

The General’s picture

I uploaded the site using a mac im going to try uploading again this time from a pc just incase worth a try

anotherdave’s picture

It sounds like a database or an URL writing problem, seeing as your homepage appears. Is your homepage completely flat - is that image that's missing dynamic - in a block or something?

Was your old DB using prefixes, or your new one?

Dave

anotherdave’s picture

Do you have a base URL set in your settings.php?

D

The General’s picture

image was in a block, and no i dont have a base url set in the settings file what should i put?

anotherdave’s picture

You don't particularly need it - just might've caused problems in your move. If the image was in a block, presuming it's not showing up due problem with the database. You said you emptied the cache table, yeah?

D

The General’s picture

Regarding the prefixes i cannot answer as i dont know what your talking about - told you i was new to drupal ha ha what an idiot (me that is)

The General’s picture

when you say cache table i ment the browser cache what do you mean? sorry were crossing over im going home in a min had enough for today but hopefully i can talk tomorrow as you are my only hope at the mo thanks for your input

anotherdave’s picture

have to head home - mate, catching a train. will give you a proper description in about half an hour.
Sorry!
D

ainigma32’s picture

Assigned: The General » Unassigned
Status: Active » Postponed (maintainer needs more info)

@The General: did anotherdave manage to give you that proper description? Or have you figured this out on your own?

- Arie

The General’s picture

Thanks for getting back to me - I have figured it all out basically it was on a temporary domain once the host changed the dns everything worked a treat Doh at least i'll know in future thank you all for the help

anotherdave’s picture

Really sorry mate,

had no net when I got home! & then have been away for the last few days. Glad to hear you got it sorted though. Cool. Yeah, it's good to build up the checklist of other things that an go wrong!

All the best,
Dave

ainigma32’s picture

Status: Postponed (maintainer needs more info) » Fixed

Good to hear the problem was resolved.

- Arie

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.