I just created a new site on my local machine and everything went fine. I uploaded the code to my host, backed up and restored the DB successfully, changed the config file to point to the DB, and the site is displayed fine. However, when I try to navigate to the admin section, or the user page - I've turned the login block off, I get a page cannot be found error. Did I miss something going from local to hosted? Thanks.

Comments

bwill’s picture

It seems as though settings in my .htacces files were incorrect - they were fixed by my host - although I have no idea of what they did. I set the site up locally, then transferred the files to the host, the same witht he DB. Created it on the host server, then restored it from a local backup - I'm guessing this is not the best method of putting a Drupal site into production? Should I just do all the development in a paid hosted environment?

bwill’s picture

sorry - somehow posted twice

yan’s picture

Just a guess: Did you turn on clean URLs on your local site? Does the host support it? if not, try to add the ?q= in your URL to get to the login form.

As far as I know the procedure you described to copy a local setup to the server should work.

bwill’s picture

The problem was that I had changed Rewrite Base in the .htaccess file to the folder I unzipped the source code to on my loacl box - to enable clean URL's. That folder was no longer found when transfering to the host. It's on my list of things to change when moving local to host now.