从本地主机移动到远程之后,Wordpress管理员网址的错误 [英] Error on Wordpress Admin URL after moving from localhost to remote

查看:202
本文介绍了从本地主机移动到远程之后,Wordpress管理员网址的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地主机上创建了一个WordPress项目,这是正常工作。



我将我的项目发送到git仓库,用于托管我的 VPS ,我将项目克隆到我的 VPS 中,并将本地数据库导入远程数据库。



我的WordPress是远程主机,但为什么当我尝试访问管理区域与url hwsystem.com.br/wp-admin ,这将重定向到$ code> http://localhost/wp-login.php?redirect_to = http%3A%2F%2Fhwsystem.com.br%2Fwp-admin%2F& reauth = 1 ?



我如何解决这个问题?






我发现问题在哪里!



此问题是因为我导入本地数据库的数据库,其中 options_value 中的options_name wp_options 表是 http:// localhost ,我只是将其更改为远程域名正在工作。

解决方案

当您移动文件时请登录到数据库,并更新 wp_options 站点URL em> home url 字段到您的实际位置。



然后登录到后端并更新所有永久链接



全部完成!


I have created a WordPress project in my localhost, this is working.

I sent my project to git repository for hosting this in my VPS, I cloned the project in my VPS and imported my local database to remote database.

My Wordpress is hosting in remote, but why when I try access admin area with url hwsystem.com.br/wp-admin, this redirecting me to http://localhost/wp-login.php?redirect_to=http%3A%2F%2Fhwsystem.com.br%2Fwp-admin%2F&reauth=1 ?

How can I fix this problem?


I found where the problem is!

This problem is because I import database of my local database, where options_value of options_name in wp_options table is http://localhost, I just change it to my remote domain and is working.

解决方案

When You move your files please login to your database and update the wp_options table site url and home url fields to your actual location.

Then login to the back end and update all permalinks

All done!

这篇关于从本地主机移动到远程之后,Wordpress管理员网址的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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