• Resolved vtinq

    (@vtinq)


    First, I’ve read the previous posts regarding 404s when viewing posts following permalinks changes. However, I’ve yet to find a successful answer. The problem: All but the default permalink setting result in “404 – Not Found.” I have the usual WordPress block, but they make no difference. What’s odd is the very same .htaccess file is working fine on two other of my sites.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Default permalinks should work without a issue, can you confirm the .htacess has following content?

    # 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

    if not , add this, save .htaccess and resave permalinks

    Thread Starter vtinq

    (@vtinq)

    Yes, that block is in my .htaccess file. I’ve tried to chmod 666 and even chmod 777 the .htaccess file. Changing permalinks elicits “Permalinks Saved” but the 404s continue.

    All but the default permalink setting result in “404 – Not Found.”

    That symptom usually indicates that either mod_rewrite is not functioning properly, or your .htaccess file isn’t writable to WordPress when you change the permalink structure from the dashboard and click the “Save Changes” button.

    In light of the fact that you’re seeing a successful “Permalinks Saved” message, and not a “If your .htaccess file were writable…” message, you might want to make sure mod_rewrite is working properly for that particular site.

    Thread Starter vtinq

    (@vtinq)

    Solved: I edited my sites-available/site.com.conf and in the <Directory /> block changed “AllowOveride None” to “AllowOveride All”.

    Nice catch!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Posts Throwing 404 on .htaccess and Changed Permalinks’ is closed to new replies.