• Hi Everyone,

    My site only works with the default permalink setting, all other options show a 404 error and I am not sure why.

    Could anyone share their own experience and any possible solutions?

    https://zarrtech.net

    My homepage loads but every other page loads a 404 error.

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you please paste your .htaccess file content.

    Thread Starter mattzarr

    (@mattzarr)

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^www\.zarrtech\.ca$ “http\:\/\/www\.zarrtech\.net” [R=301,L]

    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
    </IfModule>
    # END W3TC Browser Cache
    # 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
    RewriteEngine off
    <IfModule mod_suphp.c>
    suPHP_ConfigPath /home/mattzarr/public_html/php.ini
    <Files php.ini>
    order allow,deny
    deny from all
    </Files>
    </IfModule>
    RewriteEngine off
    <IfModule mod_suphp.c>
    suPHP_ConfigPath /home/mattzarr/public_html/php.ini
    <Files php.ini>
    order allow,deny
    deny from all
    </Files>
    </IfModule>

    RewriteCond %{HTTP_HOST} ^zarrtech\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.zarrtech\.com$
    RewriteRule ^/?$ “http\:\/\/www\.zarrtech\.net” [R=301,L]

    One problem I see in your .htaccess is that you have RewriteEngine off this will automatically disable all permalinks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘404 on /%postname%/ Permalink’ is closed to new replies.