WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was recently launch localhost server on my computer to create local website. If I create new link that add to top menu. The href value was http://localhost.com/something/something. Does this href value will change to my website name after I upload my website online ? http://mywebsite.com/something/something.

share|improve this question
Depends on how the link is created. Some things will change, others will not. This is not going to be answerable without more detail. – s_ha_dum Feb 22 '14 at 1:55
up vote 0 down vote accepted

Sure it will change if it was created using the default WordPress menu. Wordpress stores a site url, which is usually the domain or exact path. On your localhost it will be something like localhost/site/about and the moment you deploy your site and update your database with your domain, www.yourdomain.co.za/ - that will automatically update the rest of the pages or links, e.g. www.yourdomain.co.za/about

So, to answer your question: Yes, but only if your used the WordPress menu

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.