WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't access admin, attempts at all sites redirect to root site home page (6 posts)

  1. tintypes
    Member
    Posted 2 years ago #

    I've been out of the country for several weeks, and now that I'm back I've tried to open the admin pages of my small multi-site install running WP 3.2.1. The root site is

    http://www.bestrppc.com

    and the subsites (using subfolders) are

    http://www.roberteckhardtphotographs.com
    http://www.innocentsabroad.com

    It was my impression that all sites were working normally when I left. (I may be wrong. I may have updated something and not checked to be sure all was well before I left in late November.)

    Now, on my return, I am unable to open the admin panel for any of the sites, or for the super-admin. All attempts, in all sites, redirect me to the home page of the root site. But the basic pages and posts for all sites work normally. Some generated pages, such as category pages, do not work and generate a 404 page.

    I have de-activated all plugins (by renaming my plug-in folder), but the problem persists. The three sites use different themes, so I don't think this is a theme issue. I have tried deleting various parts of my htaccess and wp-cofig files, but these changes either break the site or do not resolve the problem. Nothing in those files looks in any way abnormal to me, so I don't think those files, at any rate, have been hacked.

    I am thinking that the symptom -- always redirecting to the home page of the root site -- must be clue to what the problem is. But I am not tech-savvy enough to think it through to a solution. Can anyone help??

    Absent any suggestions of what the problem might be, I am contemplating a manual upgrade to version 3.3 to see if that solves the problem. Is this a bad idea (I do have a backup of the site)?

  2. What's in your .htacess?

  3. tintypes
    Member
    Posted 2 years ago #

    .htaccess contents:

    # Block these IP addresses from reaching my site
    order allow,deny
    deny from 158.64.42.135
    deny from 195.7.10.56
    deny from 46.4.50.141
    deny from 188.127.240.61
    deny from 200.122.146.28
    deny from 80.254.66.5
    deny from 194.44.169.156
    deny from 71.237.2.169
    deny from 208.165.55.157
    deny from 46.115.24.27
    deny from 201.191.198.66
    deny from 71.176.101.77
    allow from all
    
    # Block hotlinking of images
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bestrppc.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?roberteckhardtphotographs.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?innocentsabroad.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?perfectlikeness.com [NC]
    RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
    
    # Protect the wp-login.php file from access
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_URI} wp-login.php
    RewriteCond %{REMOTE_ADDR} !^24\.6\.
    RewriteRule .* http://bestrppc.com/ [R,L]
    </IfModule>
    
    # Protect the wp-register.php file from access
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_URI} wp-register.php
    RewriteCond %{REMOTE_ADDR} !^24\.6\.
    RewriteRule .* http://bestrppc.com/ [R,L]
    </IfModule>
    
    # BEGIN WPSuperCache
    # END WPSuperCache
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    
    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).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    </IfModule>
    # END WordPress
  4. I'd start with taking out the login and register redirects from that, just to see.

  5. tintypes
    Member
    Posted 2 years ago #

    OK, found it. Your comment got me thinking. Found another .htaccess inside my wp-admin folder. That had the errant redirect. No longer have any idea why that was in there. But I'm back in business. Thanks.

  6. OI! That would sure as heck do it.

Topic Closed

This topic has been closed to new replies.

About this Topic