WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Unable to access wp-admin of sub directory blogs with specifiv names. (14 posts)

  1. mynation
    Member
    Posted 2 years ago #

    I installed wp 3.3.1
    created network
    changed theme
    run wp_debug to see any errors // No errors found
    no plugins installed.

    Actually i wanted import old WPMU data to new WP 3.3.1 as i was having 10 sub direcotry Blogs which was running with 3.2 (CORE update from WPMU)

    Now on freshly installed site i wanted to create sub direcotry blogs with same old blogs names (eg:aa, bb cc,dd etc);

    i can create blogs with old names (eg:aa, bb cc,dd etc - http://mysite.com/aa/);
    but i cannt access wp-admin of these blogs.
    but if i create blogs with new names (eg:11,22,33 etc - http://mysite.com/11/);
    i can go to its wp-admin

    there are no subdomains created from server side nor those names are hardcoded anywhere but no matter what i do it will not allow me to wp-admin

    anyone is facing such problem or know the solution ?

  2. Does mysite.com/aa/ already exist in your original install?

    Also, why not just upgrade the 3.2 install?

  3. mynation
    Member
    Posted 2 years ago #

    mysite.com/aa/ exists in original backup but its not imported.
    so in 3.3.1 same issue reported you are asking me to install 3.3.2 ?

  4. Does it exist, right now, on your server?

    If the folder's still there, you can't make a site with that name. The real folder always trumps the virtual.

  5. mynation
    Member
    Posted 2 years ago #

    No folders with those names;

    just now i installed 3.3.2 and same problem;

    is any possibility in server cache if its holds old names will create such problem ? as virtual folders of old site such names once existed in live site.

  6. mynation
    Member
    Posted 2 years ago #

    if you dont beleive i can give username passwords of live site with 3.3.2 installed, even i created new database

    just send me your email and let me know your timing i will switch back to that site

  7. I don't log in to people's sites unless they've hired me.

    is any possibility in server cache if its holds old names will create such problem ? as virtual folders of old site such names once existed in live site.

    No. No possibility. If you have a clean install, empty DB and all, there's nothing for the server to cache.

  8. mynation
    Member
    Posted 2 years ago #

    Thank you;

    not to fix problem, to see as what i wrote was true or not.
    anyway i can install in mysite.com/new/aa/ and its works
    even its works in aa.mysite.com but not in old URL mysite.com/aa/

    i want to keep old url as its thousands of pages already in google or search engines.

    anyway i will install in subdomains

  9. jkhongusc
    Member
    Posted 2 years ago #

    If this is a brand new install AND there are no directories, then I would check .htaccess or httpd config files. Maybe there are some rules in there using the old urls?

  10. mynation
    Member
    Posted 2 years ago #

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    its on shared host, so i do not have httpd conf files access.

  11. mynation
    Member
    Posted 2 years ago #

    i was having same name xml files (aa.xml,bb.xml - Sitemaps of all subblogs)
    now i deleted it.
    but instead page not found as before its redirecting to one of the page html page i opened previously.

  12. It's not the httpd, jkhongusc.

    If mynation can make NEW sites as 111 (i.e. a brand new name), but not recreate OLD ones, then it's not that. Everything would be failing if it was httpd.

    not to fix problem, to see as what i wrote was true or not.
    anyway i can install in mysite.com/new/aa/ and its works
    even its works in aa.mysite.com but not in old URL mysite.com/aa/

    Then you have something on your server overwriting the /aa/ virtual folder.

    What are the REAL Urls so we can see?

  13. mynation
    Member
    Posted 2 years ago #

    ipsetnu; we spoke about it before.

    EUREKA.....! i solved problem at last.

    i just replaced new with old .htaccess file

    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 commented

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

    and its running on 3.3.1

    MULTI SITE without define MULTISITE ?

    and the URLs are

    http://mynation.net
    http://mynation.net/voice/ and 8 more.....

  14. mynation
    Member
    Posted 2 years ago #

    and also found out why its failing;
    its not only .htaccess which wordpress give by default
    but, as i was having sitemap files with same name as blog names
    it was working till 3.2.1 with same name XML file but it gives ERROR and say page not found in 3.3.1

Topic Closed

This topic has been closed to new replies.

About this Topic