Support » Plugin: YOURLS Link Creator » Changing base of shortlinks (new domain, old links)

  • Resolved Electrosmog


    Hi there,

    until now I used YOURLS based on my main top level domain with using the subdirectory “s” like here:

    … right now I would like to use YOURLS with a new, shorter base url and without any subdirectory – like

    Now I’d want to change the url base from the first to the second example so that from now on the new shortlinks will be

    BUT: will this affect the old links? Will they still work when I change the base url? Or do I have to create a redirect rule or something?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andrew Norcross


    The plugin itself only stores the URLs generated from YOURLS, so if you change the location of your install (and the domain associated with it) then you will need to do two thing:

    1. Update all the existing links stored on the WP install
    2. Set some sort of global redirect from the old subdomain to the new smaller domain

    The first item would be updated in the WP database, the 2nd would be done outside of WP itself.

    in YOURLS database replace the old style linking with the new one. then change the settings for this plugin in WP dashboard.

    but your old links all over the web will be broken unless you set redirect rules in your .htaccess file.

    Plugin Author Andrew Norcross


    exactly what @aminima said. most of the changes would be done outside of the plugin itself, and there’s no plans to add anything to change those links globally.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing base of shortlinks (new domain, old links)’ is closed to new replies.