WordPress.org

Forums

All regular pages return 404 error until I visit wp-admin (3 posts)

  1. ryan_m27
    Member
    Posted 3 years ago #

    Every day when I navigate to any of the regular pages on my site I get a "404 - page not found" error. I immediately sign in and visit my dashboard at wp-admin. When I go back, all the pages load as they should.

    By "regular" page I mean ones that exist in the database as a page type post, as opposed to my (bbPress) forums page, which always works, as does my homepage.

    When I go to wp-admin I don't go to the permalinks settings or do anything other than visit and leave.

    I use s2member and BuddyPress, and I wanted to do some high-level renaming of pages, so my htaccess file is a little strange. That's likely my problem, but I'm not equipped to debug it. Does anyone have any ideas?

    Thanks!

    Here's my htaccess:

    # BEGIN s2Member GZIP exclusions
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase /
    	RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+
    	RewriteRule .* - [E=no-gzip:1]
    </IfModule>
    # END s2Member GZIP exclusions
    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    
    RewriteBase /
    
    RewriteRule ^login$ /wp-login.php [L]
    
    RewriteRule ^register$ /wp-login.php?action=register [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule . /index.php [L]
    
    </IfModule>
    
    # END WordPress
  2. Santosh
    Member
    Posted 3 years ago #

    do you have backup if yes than re install old .htaccess file it may solve your problem

  3. ryan_m27
    Member
    Posted 3 years ago #

    Sorry, I didn't see a reply notification for some reason.

    I do have a backup. The issue is, there is some great functionality in this version that I want to preserve. Specifically, rewriting the wp-login urls to /login and /register. I'm hoping someone can pinpoint the issue with this .htaccess file and tell me how to correct it.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic