• Resolved Leirith

    (@leirith)


    Hi everyone,

    I’m having a lot of trouble working out why my permalink settings are causing 404 errors when I attempt to view anything but the home page.

    I am using Apache 2, and have ensured that mod_rewrite is working in the .htaccess context by uploading a test file to the docroot (index2.php) and replacing the contents of .htaccess with the following.

    RewriteEngine On
    RewriteRule ^index3 /index2.php [R,L]

    When I load mysite.com/index3, the server responds with the contents of index2.php, so mod_rewrite is active and allowed in the .htaccess context.

    When WordPress regenerates the contents of .htaccess, it looks like this:

    # 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

    This is done automatically after configuring Permalink Settings using the Month and name setting, i.e. https://mysite.com/2011/02/sample-post/.

    Everything looks normal to me, what could be going wrong? Any help would be appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter Leirith

    (@leirith)

    Sorry everyone, I have figured it out! I thought I’d removed an incompatible plugin “Top Level Categories” but it was still installed. Very frustrating to find that was the cause as I’d already been through that once already with another installation.

Viewing 1 replies (of 1 total)
  • The topic ‘Permalinks lead to 404’ is closed to new replies.