WordPress.org

Support

Support » Plugins and Hacks » [Resolved] WP install not in root–tweak gocodes to allow it?

[Resolved] WP install not in root–tweak gocodes to allow it?

  • thepete
    Member

    @thepete

    I have WordPress installed in a subdirectory and would like to avoid having to use the subdirectory in the redirect. Is there any way to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • thepete
    Member

    @thepete

    OK, I scoured the code and found the spot to fix my problem. In menu.php, change the “‘.$basewpurl.'” in line 141 to your root URL. That’s in v 1.3.4, anyway, and it’s working for me. FYI.

    superbunker
    Member

    @superbunker

    A better way to do it — in line 137 in menu.php change ‘siteurl’ to ‘home’ like so:

    $basewpurl = get_option('home');

    That way you don’t have to hardcode your URL into the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] WP install not in root–tweak gocodes to allow it?’ is closed to new replies.