WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP install not in root--tweak gocodes to allow it? (3 posts)

  1. thepete
    Member
    Posted 5 years ago #

    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?

  2. thepete
    Member
    Posted 5 years ago #

    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.

  3. superbunker
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags