Konstantinos Natsios
Konstantinos Natsios

Reputation: 2924

Wordpress redirection loop

Where can I change manually the website url that is in Settings>General in wordpress panel?

I have an issue. I had one wordpress website in the url

79.170.40.53/theffashioneditor.com/test1/

and i wanted to transfer it to

tfeditor.com/test1/

So i packed the files from first domain server and unpacked them to the second domain server also did with the DB. Changed the wp-config.php with the new DB user pass and database.

Then when i tried to go to the "tfeditor.com/test1/" it redirected me to the previous server. I went to the previous wp admin panel and changed the HOME and URL to the new domain name "tfeditor.com"

and now im in a redirect loop whenever i want to go to tfeditor.com/test1/wp-admin it takes me to the previous domain with this path

http://79.170.40.53/theffashioneditor.com/test1/wp-login.php?redirect_to=http%3A%2F%2Fwww.tfeditor.com%2Ftest1%2Fwp-admin%2F&reauth=1

I login with my username and then it takes me to

http://79.170.40.53/theffashioneditor.com/test1/79.170.40.53/theffashioneditor.com/test1/wp-admin/

Someone can help me with this please?

Upvotes: 0

Views: 230

Answers (1)

preator
preator

Reputation: 1039

As I wrote here. Simple checklist for wordpress migration is:

  • edit database table wp-options and options siteurl and home there
  • edit wp-config.php (DB_NAME, DB_USER, DB_PASSWORD a DB_HOST)
  • use this replace script to replace all other occurences of absolute paths for relative path, it is enough to replace your old site name http://yoursite.com with an "/"

Upvotes: 1

Related Questions