WordPress.org

Ready to get started?Download WordPress

Forums

Network Admin links point incorrectly (11 posts)

  1. owpllc
    Member
    Posted 1 year ago #

    Hello, I reviewed other topics that are similar but I still cannot resolve the issue.
    I have a fresh install of WP 3.5 on localhost in its own directory. Before adding multisite, I ensured that I can browse the blog and use the admin. Using TwentyTwelve theme and the plugins are already deactivated. No problems.
    Then I enabled multisite and set up the network, created the blogs.dir, updated the wp-config and .htaccess files with the content displayed in the process. Everything continues to work except the Network Admin links have the wrong path. Not sure how to fix this.

    URL for blog: localhost/dev/owp
    WP admin: localhost/dev/owp/wordpress/wp-admin
    Network Admin links start with: localhost/dev/owp/wp-admin

    my .htaccess file...

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /dev/owp/
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) C:\xampp\htdocs\dev\owp\wordpress/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ C:\xampp\htdocs\dev\owp\wordpress/$2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    I also tried setting ReWriteBase to /

    network_admin_url() resolves to: http://localhost/dev/owp/wp-admin/network/
    get_admin_url() resolves to: http://localhost/dev/owp/wordpress/wp-admin/

    What could I be overlooking? Thanks in advance.

  2. URL for blog: localhost/dev/owp
    WP admin: localhost/dev/owp/wordpress/wp-admin
    Network Admin links start with: localhost/dev/owp/wp-admin

    Where is WP installed?

    localhost/dev/owp/wordpress/ ?

  3. owpllc
    Member
    Posted 1 year ago #

    Correct.

  4. Okay, then RewriteBase /dev/owp/ should be RewriteBase /dev/owp/wordpress/

    Well.. Maybe. it may just need to be /wordpress/

  5. owpllc
    Member
    Posted 1 year ago #

    No, unfortunately. Neither /dev/owp/wordpress/ nor /wordpress/ worked.
    (cleared cache and restarted too).

  6. owpllc
    Member
    Posted 1 year ago #

    The current site runs at http://localhost/dev/owp -- I see the blog and can click around. When using the admin, I go to http://localhost/dev/owp/wordpress/wp-admin. The admin area, apart from Network Admin, works fine.

    Does that answer your question?

  7. owpllc
    Member
    Posted 1 year ago #

    Somehow this thread got marked Resolved, but the issue remains. How can that flag be removed? Thank you.

  8. ahoms
    Member
    Posted 1 year ago #

    Same issue here. Can access the subsite dashboard when typing the URL but the link to the subsite dashboard (either in the network-admin sites page or the user bar) points to the network-admin dashboard

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    @ahoms: As per the Forum Welcome, please post your own topic. Posting in an existing topic prevents us from being able to track issues by topic. Added to which, your problem - despite any similarity in symptoms - is likely to be completely different.

  10. RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) C:\xampp\htdocs\dev\owp\wordpress/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ C:\xampp\htdocs\dev\owp\wordpress/$2 [L]

    Why do those lines have wordpress in there then? If you've installed in C:\xampp\htdocs\dev\owp\ and you're running out of http://localhost/dev/owp/ then it shouldn't exist.

Topic Closed

This topic has been closed to new replies.

About this Topic