WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] links in My Sites > Network Admin menu point to wrong directory (9 posts)

  1. richardtisdall
    Member
    Posted 1 year ago #

    I have just enabled Multisite. This was an existing WordPress implementation with the WordPress files in the root directory. I followed the instructions in the http://codex.wordpress.org/Create_A_Network document.

    I took backups of files and database, deactivated all plugins and also set WordPress up to run out of its own directory. So far so good.

    I allowed multisite, installed the network and then enabled the network. I had no .htaccess file so have created manually and suspect this may be where part of the problem is although everything did seem to be OK at first.

    My existing site is fine and displays fine with no issues.

    The problem is the My Sites > Network Admin flyout menu. The links seem to not recognise that WordPress is installed in it's own directory.

    e.g. my website is at http://securisure.co.uk, as I have moved WordPress in to its own directory I now access WordPress at http://securisure.co.uk/wordpress/wp-admin, which is fine, but the links in the flyout do not include the /wordpress/ part of the path and look like this http://securisure.co.uk/wp-admin/network and so I get 404's.

    I can manually enter the wordpress part of the path and then get to the Network Admin dashboard for instance but if I try and create a new site or anything I get a blank screen as soon as I hit the Add Site button.

    Any ideas please?

  2. If you had WP installed in /wordpress, then you did not install in 'root.' Root is one folder up.

    What's in your .htaccess?

  3. richardtisdall
    Member
    Posted 1 year ago #

    Hey Mika, thanks for your reply. Sorry I may not have phrased my query very well. My wordpress install was in root, however as part of enabling multisite I moved it to a new directory called wordpress following the instructions here http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    My .htaccess looks like the below, which was the output generated by wordpress at the 'Enabling the Network' stage.

    Cheers

    Richard

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) wordpress/$1 [L]
    RewriteRule ^(.*\.php)$ wordpress/$1 [L]
    RewriteRule . index.php [L]
  4. Tr this:

    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
  5. richardtisdall
    Member
    Posted 1 year ago #

    Thanks but same issue unfortunately after the change :(

  6. Is there an .htaccess in both the main public_html directory and the wordpress one?

  7. richardtisdall
    Member
    Posted 1 year ago #

    There was not, originally I only had the .htaccess in the public_html directory, but I since copied it into the WordPress directory as well but no difference.

  8. however as part of enabling multisite I moved it to a new directory called wordpress following the instructions here http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    Just to check, did you move WP to it's own directory and make sure it worked before or after turning on Multisite?

  9. richardtisdall
    Member
    Posted 1 year ago #

    Yes before turning on Multisite and everything was fine at that point. I have good backups from before I started, I have been messing about with wp-config, .htaccess and directory structure and it's all getting a bit of a mess so I am starting again with a clean install. Thanks for all your help anyway!

Topic Closed

This topic has been closed to new replies.

About this Topic