WordPress.org

Forums

Permalinks Newbie (2 posts)

  1. Lordwarz
    Member
    Posted 1 year ago #

    Hello,

    I was wondering if there is any sort of shortcut to adding your own code snippet to a url, so that when you transfer/import your localhost website to a live server the links don't get all messy and hard to replace with the new domain name, for example:

    http://example.com/hello_world/
    [permalink]hello_world

    kinda like an include tag that will make it all much better :P and faster.

  2. Chris Barrett
    Member
    Posted 1 year ago #

    If the link is one you creating, you can use a relative path URL instead of an absolute URL. For example <a href="/hello_world/">Hello</a>.

    If it is a system generated link, a popular plugin for updating those after moving the site is the Velvet Blues Update URLs plugin. This plugin, and others, are discussed in the WordPress Codex regarding site migration. For your convenience, the link is: Moving_WordPress

Topic Closed

This topic has been closed to new replies.

About this Topic