I am trying to transfer my drupal website from the local server to a live server.

So, I transfered the drupal software from local to the remote server. Afterwards I created a database in the remote server and
I imported the database from local. Finally I changed the file settings.php putting the correct database name,user ,password and
server name.

The home page is fine in my live server; BUT I CAN´T LOG IN AS ADMINISTRATOR WITH THE LOGIN USERNAME AND PASSWORD
AND THE LINKS ARE BROKEN.

WHAT IS THE MATTER?

Many thanks

Comments

hbspatil’s picture

can you check your .htaccess file may be its not uploaded.

cortazar11’s picture

Yes, it is uploaded.

Another thing: when linking to anoher page the resulting url is not the domain plus the new page,
but the page only.

E.g. (home page/domain: www.drupal.org ; new page: comment/edit/5507944 instead www.drupal.org/comment/edit/5507944)

jamesoakley’s picture

Have you set the base URL in settings.php? You shouldn't need to, and that could break things?


This signature is currently blank
cortazar11’s picture

Not, I didn´t.

jamesoakley’s picture

Did you clear the cache before you did the migration?

If not, you could try clearing all the caches in Drupal on the local copy, export the database again and import it to the live copy, then try.

The other thing you could try is turning off clean URLs - again: before migrating. That way, you're using example.com/index.php?q=user to log in, rather than example.com/user. If you're having trouble with internal links, that may help.

When you say you can't log in, what happens exactly when you go to example.com/user, enter the admin name and password, and click "log in"?


This signature is currently blank
cortazar11’s picture

I realise now that the links as administrator are broken,
but as soon as I write the url. and point to the page, this turns up correctly.

E.g. I click the structure link and it gives me error, I write the url: www.example.com/?q=admin/structure
and I can go through, the page of structure turns up.

Sorted!!!!

Many thanks JamesOakley

jamesoakley’s picture

Glad to hear that sorted it.


This signature is currently blank