• Prior to yesterday, the site was working perfectly fine. Now after the upgrade to 4.5, all sub-pages (Pages, Tags, Categories etc) are returning 404 errors with the same theme as my site.

    If I set the permalink style to Plain, they work fine.

    The site is set up with WP 4.5 in a subfolder /dev so I do have some concerns about the multiple .htaccess files at work. In the web root, here is the content of it (webroot/.htaccess):

    # Use PHP 5.4
    # Use PHP54 as default
    AddHandler application/x-httpd-php54 .php
    <IfModule mod_suphp.c>
        suPHP_ConfigPath /opt/php54/lib
    </IfModule>
    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www.)?off.com$
    
    # Change 'subdirectory' to be the directory you will use for your main domain.
    RewriteCond %{REQUEST_URI} !^/dev/
    
    # Don't change the following two lines.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    # Change 'subdirectory' to be the directory you will use for your main domain.
    RewriteRule ^(.*)$ /dev/$1
    
    # Change example.com to be your main domain again.
    # Change 'subdirectory' to be the directory you will use for your main domain
    # followed by / then the main file for your site, index.php, index.html, etc.
    
    RewriteCond %{HTTP_HOST} ^(www.)?off.com$
    RewriteRule ^(/)?$ dev/index.php [L] 
    
    # Redirect old file path to new file path
    Redirect /locator/ https://off.com/find-a-farm/

    Then in the wordpress folder, there is another one (/webroot/dev/.htaccess):

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded ?les
    RewriteRule ^([_0-9a-zA-Z-]+/)??les/(.+) wp-includes/ms-?les.php??le=$2 [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress
    
    # Wordfence WAF
    <IfModule mod_suphp.c>
    	suPHP_ConfigPath '/home/off/public_html/dev'
    </IfModule>
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    	Order deny,allow
    	Deny from all
    </IfModule>
    </Files>
    
    # END Wordfence WAF

    Can anyone help get my pretty permalinks back?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem at pukka.ch
    I made the update and not the subpages are not working, only on standard permalinks

    Thread Starter elyptic

    (@elyptic)

    Also I should add that I’ve disabled the WP_CACHE and here are the other settings in my wp_config.php:

    // define('WP_CACHE', true); //Added by WP-Cache Manager
    // define( 'WPCACHEHOME', '/home/off/public_html/dev/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager
    define('WP_DEBUG', true);
    define('WP_DEBUG_DISPLAY', true);
    define('WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'off.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    /* That's all, stop editing! Happy blogging. */

    I just want the team to know I’ve seriously tried everything in the forums to get it back, but nothing has worked.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite permalinks 404 after upgrade to 4.5’ is closed to new replies.