• I recently updated a 3.02 install to 3.04 and now my wp-admin url is not reachable.

    When I have the following in my .htaccess;

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

    My Permalinks work great, but I can’t access wp-admin, I get a result of “page not found”.

    However, when I remove that code from my .htaccess, I can get to wp-admin, but then my permalinks are broken.

    Any ideas on how to correct this?

Viewing 15 replies - 1 through 15 (of 21 total)
  • # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    The .htaccess is like this? including the <IfModule

    Emil

    Thread Starter dononeil

    (@dononeil)

    Yes, I’ve tried exactly like that… same problem.

    It’s like Apache (or wordpress) is ignoring

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    I’ve restarted the server to make sure it’s not that. This only started popping up when I did the upgrade.

    can you show me the URL please?

    If this was working fine before 3.04 I can suggest to check plugins and make sure that all of them are up to date and of course compatible with 3.04 as well.

    I don’t believe that the upgrade is in conflict with your mod_rewrite (Apache).

    Emil

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Did you install WordPress in a subfolder, like it’s in /blog but runs from https://domain.com straight up?

    Thread Starter dononeil

    (@dononeil)

    It’s in the main domain/folder, not in a sub folder…. the url is https://www.troublebrothers.com

    I am looking at your first post once again and you have:

    RewriteRule ^index\.php$ - [L]
    and
    RewriteRule . /index.php [L]

    Also if this: https://www.troublebrothers.com/games/cargo-runners/ works great, I don’t think that this is issue with .htaccess

    PS You did try changing my .htaccess from above, correct?

    Emil

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Given that https://www.troublebrothers.com/wp-login.php works but does NOT have any styling, I went to https://www.troublebrothers.com/wp-admin/css/login.css and got a 404.

    Can you double check the folder wp-admin exists? I bet it’s missing, or perhaps some files are missing.

    My wild guess in that case is that in General Settings > WordPress address (URL) / Site address (URL) isn’t correct and as well ipstenu stands correct about admin files ?? Great catch!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Nah, the wordpress URL is right otherwise the whole site would be FUBAR and not JUST the admin stuff. The wp-admin pages are only called by the admin (rename your folder and see if the site stays up ?? It’s kinda neat).

    However, when I remove that code from my .htaccess, I can get to wp-admin, but then my permalinks are broken.

    So no that wouldn’t be correct either, if like @dononeil says without .htaccess all works fine, even the wp-admin all files are there and not missing ??

    Cheers,
    Emil

    Thread Starter dononeil

    (@dononeil)

    @emil Uzelac, yes, I removed the extra part of the .htaccess file;

    RewriteRule ^index\.php$ – [L]

    And have tried it with both rewrite rules for index (both singularly and together) and no difference. I found the rule above listed in the blog on how to setup the permalinks and was originally thinking that was the problem, but it doesn’t seem to be.

    wp-admin exists, and is not missing files.

    Like I said… if I disable the .htaccess;

    1) I can get to wp-admin and everything there works fine
    2) I can get to ‘regular’ post names, but not permalinks (obviously)

    If I enable the .htaccess

    1) I can NOT get to wp-admin
    2) I can get to the permalinks

    So either something is wrong with the base code, or there is a bug somewhere in some part of the upgrade or code… I installed it with Installatron, and used Installatron to perform the upgrade. Maybe something they do broke it?

    I would think I just need to add an exclusion for wp-admin (which is what I thought one of those is supposed to do, for directories), but I don’t know how to do that.

    I like to be right, but I hate when my right doesn’t help you ??

    Don’t know my friend, the last resource that I could suggest is to grab the fresh WordPress download and upload them manually.

    Sorry because I wasn’t much of the help, maybe some of the WordPress Support will jump in to assists you further.

    Emil

    Have you tried to rename .htaccess file and login and reset you permalinks from fresh see if that solves your problem.

    As I have updated and I did not have any problem with mt=y wordpress.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    If there is absolutely nothing else in your htaccess outside the normal WordPress stuff, and I mean nothing but that, then something is seriously jacked in either a plugin, your theme, or your server.

    Standard debugging ensues.

    1) Turn off ALL plugins
    2) change your theme to the twenty ten theme.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Upgraded to 3.04 w/ permalinks, can't access wp-admin’ is closed to new replies.