WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Relative Links Fix] useless when wordpress is in subdirectory (3 posts)

  1. maxoud
    Member
    Posted 4 years ago #

    You should change
    $siteurl = $_SERVER['HTTP_HOST'];
    to
    $siteurl = get_option('siteurl');
    and then it works like a charm.

    http://wordpress.org/extend/plugins/relative-links-fix/

  2. achellios
    Member
    Posted 4 years ago #

    Seems painfully obvious, now that you point it out. :) Plugin updated--thanks for the fix!

  3. maxoud
    Member
    Posted 3 years ago #

    –ěne more thing is missed by both of us:
    get_option('siteurl') is deprecated, use get_option('url') instead.

Topic Closed

This topic has been closed to new replies.

About this Topic