Closed (fixed)
Project:
Drupal core
Version:
6.9
Component:
install system
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2009 at 15:20 UTC
Updated:
3 Mar 2009 at 12:10 UTC
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
Comment #1
anotherdave commentedAre 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
Comment #2
The General commentedok 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
Comment #3
anotherdave commentedem, have you checked your database to ensure all the tables have copied across correctly?
Has the .htaccess file been uploaded?
Comment #4
The General commentedall the tables have copies but you have got me on the .htaccess file wheres that? Sorry if that sound stupid but hey
Comment #5
anotherdave commentedno, 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
Comment #6
The General commentedThought you were on to something then ive uploaded the said file empted cache etc but still the same, i should have been a plumber
Comment #7
The General commentedI uploaded the site using a mac im going to try uploading again this time from a pc just incase worth a try
Comment #8
anotherdave commentedIt 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
Comment #9
anotherdave commentedDo you have a base URL set in your settings.php?
D
Comment #10
The General commentedimage was in a block, and no i dont have a base url set in the settings file what should i put?
Comment #11
anotherdave commentedYou 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
Comment #12
The General commentedRegarding 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)
Comment #13
The General commentedwhen 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
Comment #14
anotherdave commentedhave to head home - mate, catching a train. will give you a proper description in about half an hour.
Sorry!
D
Comment #15
ainigma32 commented@The General: did anotherdave manage to give you that proper description? Or have you figured this out on your own?
- Arie
Comment #16
The General commentedThanks 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
Comment #17
anotherdave commentedReally 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
Comment #18
ainigma32 commentedGood to hear the problem was resolved.
- Arie