admin管理员组文章数量:1435859
Very new at this, so maybe I am missing some fundamental understanding of how WordPress handles links. But, I'm building a website on my local machine, expecting to upload it to a provider when I'm done. Right now everything resolves to localhost.
Here's the problem. One of the pages has a list of links to other pages on the site. WordPress created those links as http://localhost/...
Shouldn't there be a placeholder for the domain name there instead of a hardcoded localhost? Or better yet, shouldn't they be relative links instead of fully qualified URLs?
Or will WordPress automatically fix those links when I move my site to a provider?
Very new at this, so maybe I am missing some fundamental understanding of how WordPress handles links. But, I'm building a website on my local machine, expecting to upload it to a provider when I'm done. Right now everything resolves to localhost.
Here's the problem. One of the pages has a list of links to other pages on the site. WordPress created those links as http://localhost/...
Shouldn't there be a placeholder for the domain name there instead of a hardcoded localhost? Or better yet, shouldn't they be relative links instead of fully qualified URLs?
Or will WordPress automatically fix those links when I move my site to a provider?
Share Improve this question asked Mar 20, 2019 at 13:44 DThompson55DThompson55 32 bronze badges2 Answers
Reset to default 2Some links (those built in code) will automatically change to your new domain. Others (those in post content) you will want to swap out using something like better search replace to swap out localhost for your new domain.
Those URLs are stored in your WordPress database. Once you have moved your site to your provider, you will need to update the values in your database.
This article should point you in the right direction.
https://codex.wordpress/Moving_WordPress
本文标签: permalinkshow do links move when I move my site
版权声明:本文标题:permalinks - how do links move when I move my site? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745672234a2669639.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论