• Resolved tinozee

    (@tinozee)


    Hi I’m running Multisite and in the Network admin area I am missing a leading slash in links within the admin. Before going live with the domain I had previously been using an IP~username to access the site. I had also used that as the base url for the site during development. When we were going live I changed the url in the DB with a find replace. I had to do several replaces to get the ip alone, the full url and the ~username alone was replaced with nil. During these replaces I think I must have whacked a leading slash that is supposed to get generated when I use the admin. Either that or it’s the htaccess rewrite.

    Any leads or clues for me?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter tinozee

    (@tinozee)

    This is my rewrite section in htaccess –

    RewriteEngine On
    RewriteBase /
    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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Thread Starter tinozee

    (@tinozee)

    This is the type of url I am getting in the network admin –

    https://www.domain.comwp-admin/network/

    The site level admin works fine. All functionality is there but I need to manually add the leading slash in all broken links.

    Thread Starter tinozee

    (@tinozee)

    Anyone hane any clue?

    Tx

    Thread Starter tinozee

    (@tinozee)

    Still stuck on this any ideas?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Please don’t bump. When no one answers its because they don’t know.

    It’s not your .htaccess.

    Go into your database and look at wp_site

    You should have domain.com with a path of / in there. Check that’s okay.

    Then look at wp_blogs and make sure it too has the correct path.

    Thread Starter tinozee

    (@tinozee)

    Hi tahnks for the reply and apologies for bumping. I think my initial screw up was replying to my own thread which made it look like I had an answer maybe.

    I finally got it. It was actualy a bit more complicated than just the DB paths due to the fact that I am running this test site on a vps with a ~username off the ip. So I had to apply slightly different path setups in .htaccess, the DB and in wp_config. It’s too much to explain here right now, but if anyone has this issue feel free to ask and I will be glad to discuss.

    Ipstenu I see your posts all over wordpress world, so thanks a lot for the support in many places. I am a long time web dev but new to this WP/multisite structure.

    Take care

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    No prob. Just FYI, moving multisite can be a hassle, which is why we all recommend using https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ to do the search and replace ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wp-admin leading slash missing in multisite admin url’ is closed to new replies.