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

  • Resolved Electrosmog

    (@electrosmog)


    Hi there,

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

    mydomain.com/s/4x9y

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

    mdom.de/4x9y

    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 mdom.de/blabla

    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

    https://wordpress.org/plugins/yourls-link-creator/

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

    (@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.

    Amin

    (@aminima)

    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

    (@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)
  • You must be logged in to reply to this topic.