切换WordPress站点服务器 [英] Switch over WordPress Site server

查看:65
本文介绍了切换WordPress站点服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有WordPress博客.最近,我改变了我的主机.因此,我使用filezilla从旧服务器上下载了所有博客文件.在新服务器上,我创建了目录Blog& ;;在此之下,我上传了所有文件.我在新服务器上制作了与旧服务器完全相同的新数据库,并将其上载.现在我的博客在新主机上可以正常使用,但是每当我尝试登录www.sitename.in/blog/wp-admin时,它就会将我重定向到旧域名,即www.sitename.com/blog/wp-admin.我该如何更改?我以前的托管服务即将过期&很快也会在旧域名上使用.如何完全切换到新服务器?

I have WordPress Blog. Recently I have changed my hosting. So I downloaded all my blog files from old server with filezilla. On new server I made directory blog & under that I uploaded all files. I made new database on new server exactly as same as old one and uploaded that. Now my blog is active properly on my new hosting but whenever I try to login www.sitename.in/blog/wp-admin then it redirects me to the old domain i.e www.sitename.com/blog/wp-admin . How can I change this? My old hosting will expire soon & soon on old domain as well. How can I completely switch over to my new server?

推荐答案

打开数据库并更改wp-option的URL 检查屏幕截图

Open your database and change the URL of wp-option check screenshot

http://awesomescreenshot.com/0d160xve67 如果不起作用,请使用notpad ++编辑器打开数据库,然后找到博客网址,例如"localhost/example"

http://awesomescreenshot.com/0d160xve67 If not work then open your database with notpad ++ editor then find your blog url something like "localhost/example"

在notpad ++ ctrl + f中,单击并替换以在第一个选项卡中添加选项卡,将您的博客网址放在第二个选项卡中的本地主机/示例中,然后将您的原始网站网址 类似于example.com

In notpad++ ctrl+f and click to replace tab in first tab put your blog url something localhost/example in 2nd tab put your orginal website url something like example.com

现在点击右侧的全部替换标签,然后按Ctrl + s.制作zip并重新安装数据库,它将修复所有url,例如images,admin,site和pages sulgs等 希望它能工作

now hit the replace all tab from right side then ctrl+s . make zip and reinstall your database it will fix all url like images , admin, site and pages sulgs etc hope it will work

这篇关于切换WordPress站点服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆