Support » Plugin: Root Relative URLs » problem when WP is not installed at root

  • Just started using this plugin on a new site I’m building and it promises to save me a lot of time, thanx.

    I did find one problem, however. If WP is not installed at the server root, then the define()’s added in wp-config.php need to be modified accordingly, e.g.

    define('PATH', '/somedir/someotherdir');
    define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . PATH);
    define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . PATH);
    define('WP_CONTENT_URL', PATH . '/wp-content');
    define('DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST']);

    Hope this helps

    http://wordpress.org/extend/plugins/root-relative-urls/

  • The topic ‘problem when WP is not installed at root’ is closed to new replies.