permalinks - how do links move when I move my site?
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
- 都想取代PC 这些产品究竟还欠缺什么?
- 尊敬但不迷信 iPhone 6s这四点不如安卓机
- 微软Office 365云服务真正“落地”中国了吗?
- 谷歌收购移动软件商Quickoffice 整合Apps
- docker compose - Issues with Using CapSolver Extension in Selenium Grid for reCaptcha v2 - Stack Overflow
- Jetpack Compose TextField keyboard dismisses immediately after typing first letter - Stack Overflow
- reactjs - Next.js - I need static error page template in non-static app router based app - Stack Overflow
- c# - Is there a way to fill scriptable object field with a child class? - Stack Overflow
- mvvm - How to Call ViewModelProvider without ref in Flutter - Stack Overflow
- vue.js - single pages doesn't work when i moved them to app component - Stack Overflow
- dart - Flutter - dyld: lazy symbol binding failed: Symbol not found: _os_log_create - Stack Overflow
- julia - How can I fix GLMakie.jl LoadError? - Stack Overflow
- javascript - Unable to locate tests within a folder - Stack Overflow
- combinatorics - MiniZinc - Optimizing Script for Scheduling Problem - Stack Overflow
- c# - Having trouble getting the correct position to draw my sprite to when rotating it - Stack Overflow
- python - Text with transparent background to make crosshair - Stack Overflow
- r - How to construct a grouped line plot using ggstatsplot without faceting? - Stack Overflow