WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Unable to login to sub blogs wp-admin (23 posts)

  1. rudy3107
    Member
    Posted 2 years ago #

    I have 10 sub directory blogs
    it all started i moved to new host and 3.3.1 update.

    i can login only to main blog/site other blogs are visible to read to public [ http://mynation.net/abio/ ]

    but when i try to login to that blog it gives
    ----------------
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.
    --------------------
    ERROR.

    when i try to go to sub blog wp-admin from main admin on URL it shows
    http://mynation.net/abio/wp-admin/ but display its blog page not admin panel page.

    anyone know the FIX....?

  2. rudy3107
    Member
    Posted 2 years ago #

    When i imported from old site i changed old sites PATH [ /home/oldsite/public_html/ ] to new site PATH
    then
    I thought something wrong with webhost.
    so,
    I created test subdirectory blog http://mynation.net/test/ and its wp-admin also working fine

    only old Blogs wp-admin is not working

    .... so far exert on this issue ?

  3. Drbappaditya Mishra
    Member
    Posted 2 years ago #

    your server is too slow .
    it does not opened any page with your link.
    i guess .htaccess may be anyhow modified or damaged

  4. Drbappaditya Mishra
    Member
    Posted 2 years ago #

    your path for that subblog should like that

    "/home/oldsite/public_html/abio/"

    check for .htaccess file whether present or not
    if it is present in that path "/home/oldsite/public_html/abio/"
    edit and paste below code only. remove any other code if it is written

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
  5. rudy3107
    Member
    Posted 2 years ago #

    Thank you very much for the reply.
    I have exactly same .htaccess

    i deleted http://mynation.net/test/ and other blogs are working
    eg:
    http://mynation.net/abio/
    http://mynation.net/docs/

    there is no physical directory called "/home/oldsite/public_html/abio/" so there is no .htaccess than public_html directory.

    one more thing i did was i just renamed http://mynation.net/abio/ into http://mynation.net/abio1/ and everything works fine [ now reverted back to actual blog name]

    i think wordpress is alergic to old path

  6. rudy3107
    Member
    Posted 2 years ago #

    This is my .htaccess
    ------------
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    -----------

  7. rudy3107
    Member
    Posted 2 years ago #

    And this is my wp-config.php other than database settings

    define('DB_COLLATE', '');
    define('VHOST', 'no');
    
    $base = '/';
    
    define('DOMAIN_CURRENT_SITE', 'mynation.net' );
    define('PATH_CURRENT_SITE', '/' );
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOGID_CURRENT_SITE', '1' );
    define( 'SUBDOMAIN_INSTALL', false );
    define('WP_HOME','http://mynation.net');
    define('WP_SITEURL','http://mynation.net');
    define( 'WP_CONTENT_URL', 'http://mynation.net/wp-content');
    define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content' );
    define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins' );
    define( 'WP_PLUGIN_URL', 'http://mynation.net/wp-content/plugins');
    
    define('WP_POST_REVISIONS', false );
    define('CONCATENATE_SCRIPTS', false);
    define('EMPTY_TRASH_DAYS', 0 );
    define( "WP_USE_MULTIPLE_DB", false );
    define( 'NONCE_SALT', '[REMOVED]' );
    define('WP_ALLOW_MULTISITE', true);
    define('EMPTY_TRASH_DAYS', 0 );
    /* That's all, stop editing! Happy blogging. */
    
    /** WordPress absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
  8. Drbappaditya Mishra
    Member
    Posted 2 years ago #

    sorry i type it in error.
    read it "/home/public_html/abio/" instead of "/home/oldsite/public_html/abio/"

  9. Drbappaditya Mishra
    Member
    Posted 2 years ago #

    i think wordpress is alergic to old path

    i shifted my blog website to another webhost company without changing anything.

    Actually my webhost company(HOSTGATOR.COM) done all jobs for me without any charge. You should subscribe better webhost .

  10. Drbappaditya Mishra
    Member
    Posted 2 years ago #

    my wp-config.php
    absolutely different from you

    for security reason i avoid posting it here

  11. rudy3107
    Member
    Posted 2 years ago #

    Thank you Dr.Bappaditya Mukhopadhyay

    You can mail wp-config.php after trimming DB or any sensitive settings to email admin AT mynation.net

  12. rudy3107
    Member
    Posted 2 years ago #

    i found out the problem.

    it was .htaccess given by wordpress by default

    and option of MULTISITE

    Here is my .htaccess

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    and i also commented

    /**define('WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true ); */

    in wp-config.php

    and now MULTIsite is running perfectly with version 3.3.2 with these settings.

  13. Where on earth did you get that .htaccess? That should never work. You have multiple conflicting lines.

  14. rudy3107
    Member
    Posted 2 years ago #

    but its works on my site.
    and with same .htaccess im running not only http://mynation.net and have another site http://manglorean.net which run multiple sites with same .htaccess file

    if you want i can give you FTP password, to see and beleive.

  15. Oh I believe you, I'm just very shocked.

    See this:

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    Says 'Anything that goes to domain.com/files/ gets redirected to domain.com/index.php'

    And THEN it says 'If you're coming from domain.com/wp-content/plugins/ and want to see domain.com/files/, use the ms-files code here...'

    Now the second half makes sense, if you have a plugin like TimThumb that parses things weirdly, but that first one... is weird and I can't see how that shows ANY images, unless they're all being handled by a plugin.

  16. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

    Yes, that .htaccess is definitely wrong and definitely screwy. Your first .htaccess was a problem too, because you had this:

    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    That first rewrite rule was incorrect and in the wrong place.

    My advice to you is to clear out the .htaccess and let WordPress regenerate it properly. To do this, make the .htaccess writable and visit the main site's settings->permalink page, and save the permalinks.

  17. rudy3107
    Member
    Posted 1 year ago #

    As per you guys and wordPRESS if its wrong how its working and WordPress generated .htaccess and wp-config.php is not Working ?

    My site was down for 3 weeks, to find out were and what went wrong even i am using wordpress for last 6/7 years

    current .htaccess was not written by me, it was giving by wordpress MU long long ago. and in wp-config also there was extra line

    define('VHOST', 'no')

    last 3 weeks i tested all possibilities by installing 3.2.1, 3.3.1 and lastly 3.3.2 not less than 25 times with various combination
    in subdomain
    in subdirectory
    but whatever wordpress generated .htaccess/wp-config.php just dont work for me and it is not allow me to create my subdirectory Blogs with default files of WORDPRESS.

    I dont use any plugins to generate .htaccess or link images
    so
    it mean WORDPRESS do not know How their software works....!

  18. current .htaccess was not written by me, it was giving by wordpress MU long long ago.

    We do know how it works. And WPMU is NOT the same thing as WordPress Multisite. You totally skipped the part in your upgrade where WPMU became WordPress Multisite, and told you to edit your .htaccess.

    And by the way, it REALLY helps if you could tell us you started with WPMU 6 years ago (unlikely, but okay), because that's a very different upgrade path.

    Go read the examples of CORRECT .htaccess here: http://codex.wordpress.org/Multisite_Network_Administration#.htaccess_and_Mod_Rewrite

    And since you have now explained you're using an upgraded-from-wpmu install, you should have read this: http://codex.wordpress.org/Upgrading_WPMU#2.9.x_to_3.0

    And this: http://wpmututorials.com/how-to/upgrading-from-wpmu-to-wp-3-0/

    Good luck.

  19. rudy3107
    Member
    Posted 1 year ago #

    I always upgraded new release by just coping wp-admin , wp-include and root directory files without reading how to upgrade and that worked for me.

    as i am not femiliar with .htaccess, i was checking if any new lines in new release and adding it or replacing it if i find little difference

    eg:

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    and

    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    and that never gave me any trouble like this time.

    As per you and wordpress it should not work even i do not have

    /**define('WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true ); */

    in wp-config.php

    so WORDPRESS has to change its documents or its a BUGGG...?

    Where is ANDrea ? no comments from him....!

  20. Her. Andrea is a woman.

    As per you and wordpress it should not work even i do not have [...]

    Since you upgraded from WPMU, that's no longer true. HOWEVER. You see where you neglected to mention that until very late in this thread? We are not psychic. You have to tell us what's going on if you want good help :)

    If you used WPMU, you MUST mention that first thing, BECAUSE you moved from WPMU to WordPress Multisite.

    WordPress' docs are 100% correct for a Multisite Install. They don't cover the upgrades from WPMU to WP Multisite 3.0 because that was ... well about two years ago now, and everyone should have upgraded by now.

    tl;dr: When you say "I upgraded" you should always say from what

  21. rudy3107
    Member
    Posted 1 year ago #

    Your questions answered in our other thread.

    http://wordpress.org/support/topic/no-network-setup-option-under-tools?replies=15

    even i tried with fresh install(3.3.1) and created network of blogs but it did`t allowed me to create subdirectory blog namess i wanted to create. (both .htaccess and wp-config was default WP files)

    Network setup option disapear once you create Network, same happend in my another site http://live-green.in [ ver 3.3.1 fresh install]

    anyway ThanX a lot everyone for your Time and tolerating me.

    Im happy with what i have, coz its different from others.

  22. Honestly I think you did something really wrong when you installed, but if it's working, good. If it breaks later on, it'll be a nightmare so PLEASE PLEASE PLEASE remember to link back to these threads to explain your bizarre setup.

  23. rudy3107
    Member
    Posted 1 year ago #

    THANK YOU very much Ipstenu for your concerns;

    i also installed 3.3.2 as per WORDPRESS instruction(without importing old data) and tried to create blogs i wanted to create but it did`t allowed me to create those names, thats why in one of my thread i asked is wordpress keeps it somewhere else in server, or hardcode it somewhere if its created already.

    [Ref : http://wordpress.org/support/topic/unable-to-access-wp-admin-of-sub-directory-blogs-with-specifiv-names?replies=14 ]

    for last 3 weeks i was trying to figure out where and what went wrong,going thru all documents and threads but i did`t found any.

    i lost my website rank almost 3 times;
    Google deleted site links from million to hundred
    as it was NGO site my members desperatly wrote to me about documents they wanted

    i tried almost, not less than 25 combination of install, but it didt allowed me to run site normally with the .htaccess/wp-config files given by WORDPRESS. - Reason unknow Even someone sugested my Local PC keeps settings, and i tried with 3 different PCs. still it didt. so now i have no option than run as it is till it breaks or i find the fix for it.

    And GOD knows how it run when everyone and WORDPRESS says it should not run .htaccess/wp-config i have.

Topic Closed

This topic has been closed to new replies.

About this Topic