I wanted to install and setup WordPress multisite, and made these changes to wp-config.php file and .htaccess file respectively. Now i can’t access the wp-admin panel its giving me this error
I’m running this on azure bitnami packaged WordPress instance
"Not Found The requested URL was not found on this server."
wp-config.php:
define('WP_ALLOW_MULTISITE', true)
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'My Website');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
.htaccess.php:
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [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]
2
Answers
I Have The Same Error, but my .htaccess is different
WordPress 6.0.1
I solved my problem, after hours, disabling PHP-FPM for my domain in .conf
I don’t know if this is your case, but check if there is any incompatibility between multisites and php-fpm