Multisite permalinks 404 after upgrade to 4.5
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Multisite permalinks 404 after upgrade to 4.5’ is closed to new replies.