Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why does remote wp-admin redirect to localhost?

Tags:

wordpress

I created a wordpress site on my local computer, then uploaded it to a remote server. The CSS wasn't working and I realised that it was looking at localhost to try to find it, when it should have been looking at the remote server. So I went to www.remoteserver.co.uk/wp-admin and it redirected me to localhost/wp-admin.

Does anyone know what I'm doing wrong?

like image 887
babbaggeii Avatar asked Mar 08 '13 11:03

babbaggeii


2 Answers

I've solved it now - it was a site url problem. I found this:

http://codex.wordpress.org/Changing_The_Site_URL

like image 53
babbaggeii Avatar answered Nov 13 '22 01:11

babbaggeii


You need to change it in wp_options table in database, and after it, regen all perma links :)

like image 7
gabrielbuzzi Avatar answered Nov 12 '22 23:11

gabrielbuzzi