WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Network Admin linked to wrong folder (6 posts)

  1. LiveKnut
    Member
    Posted 6 months ago #

    Hi out there,

    I installed WP 3.8 and migrated my site http://www.domain.de with home Directory in $DOMAIN/home/ and with content Directory in $DOMAIN/_wp_content to multisite. The blog itself is fine.

    When logging in as admin and then click to network administration, WP will look into $DOMAIN/home/wp-admin/network which is not existant. It is located in $DOMAIN/_wp_Content/wp-admin/network.

    Once I Change manually to that URL I get Access to the admin page but I can't add a new blog there. The entries in the Navigation are not there.

    The wrong Location of Content also happens if I click onto the WordPress button in the upper left corner of the Screen.

    Who can help?
    Knut

  2. LiveKnut
    Member
    Posted 6 months ago #

    Thanks a lot for your answer.

    Problem changed slightly. I forgot to made the directory blogs.dir during the migration to multisite. Now it is possible to set up a new blog but ONLY IF I CHANGE THE URL which shows to the blog directory and not to the wp Directory (see above).

    Your link is not appropriate for me since I have not changed any locations, neither domains, nor servers. It is everything at the same place.

    Any further ideas?

  3. LiveKnut
    Member
    Posted 6 months ago #

    Hmmm... checked also the db table entries in WP options table. Site-URL und Domain-URL are set correctly (from my perspective).

    Regards,
    Knut

  4. LiveKnut
    Member
    Posted 6 months ago #

    OK, ich checked several blog entries for this but I didn't find a solution yet. But I recognized that the .htaccess plays an important role.

    Here the .htaccess in the blog Folder:
    ##########################################################
    # protect wpconfig.php
    <files wp-config.php>
    Order deny,allow
    deny from all
    </files>

    # BEGIN WordPress

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

    # END WordPress
    ###########################################################

    Here the .htaccess in the wp Folder:
    ###########################################################
    # protect wpconfig.php
    <files wp-config.php>
    Order deny,allow
    deny from all
    </files>

    # BEGIN WordPress

    # END WordPress
    ###########################################################

    Appreciate any help.
    Regards,
    Knut

  5. LiveKnut
    Member
    Posted 6 months ago #

    OK, found a solution. The issue was in the RewriteRule of .htaccess file in the flog Folder (not the WP Folder). It was pretty time consuming to get the regular expressions understood ;-)

    Now the .htaccess is as below:

    If anyone can have a look at the .htaccess and at the remaining questions below, that would be great!

    # BEGIN WordPress
    # /Knuts-Segel-Touren/ ist the blog folder (not the WP folder)
    RewriteEngine On
    RewriteBase /Knuts-Segel-Touren/
    RewriteRule ^index\.php$ - [L]

    # Add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    # Do nothing if file or folder is matched
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # Changed $1 into ../_wp_s6ibl0g/ and it works fine. But the reason why network is
    # the only one referring to the blog folder /Knuts-Segel-Touren/ is quite unclear.
    RewriteRule ^(wp-(content|admin|includes).*) ../_wp_s6ibl0g/$1 [L]
    RewriteRule ^(.*\.php)$ wp/$1 [L]
    RewriteRule . index.php [L]
    # END WordPress

    Remaining questions:
    1. Why is a trailing slash to /wp-admin necessary?
    2. Why are the other WP .php files are catched out of the WP Folder ../_wp_s6ibl0g/ and the network .php files not?

    Within db there is:
    siteurl = http://www.diemel-net.de/_wp_s6ibl0g (my wp folder)
    home = http://www.diemel-net.de/Knuts-Segel-Touren (my blog folder)

    3. Why hasn't this being set up during the installation routine properly? Did I made a mistake??

    4. What are the last 2 rules good for?
    RewriteRule ^(.*\.php)$ wp/$1 [L] (Folder wp will not exist)
    RewriteRule . index.php [L] (all else is linked to index.php?!?)

    5. Are there any issues likely when I proceed adding new sites and is there anything I should take care of?

    Merry Christmas to all of you.
    LiveKnut

Reply

You must log in to post.

About this Topic