如何更新WordPress的链接? [英] how to update link in wordpress?

查看:89
本文介绍了如何更新WordPress的链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在wordpress中创建了一个站点,并在localhost中运行,但是将其放置在免费网络托管的Internet上之后.主网站已加载,但网页的链接仍重定向到localhost服务器.我应该在哪里更改以解决此问题?

I made a site in wordpress and run in localhost but after putting it on internet in free web hosting. The main website gets load but the links of the webpage still redirect to the localhost server. Where should i change to fix this?

推荐答案

如果无法访问管理页面来设置站点URL,则必须手动更新表数据库中的wp_options .您可以使用PHPmyAdmin之类的工具执行此操作,也可以在控制台上使用mysql.

这是要应用的SQL语句:

In case you can''t access your admin page to set site URL, you have to manualy update table wp_options in your database. You can do it with a tool like PHPmyAdmin or use mysql on console.

This is the SQL statement to apply:

update wp_options set option_value=''www.your-site.com'' where option_name=''siteurl'';


我只需要在wordpress的设置部分中更改某些设置.
i just had to change some settings in the settings part of wordpress.


这篇关于如何更新WordPress的链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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