Deprecated: Return type of WPCF7_FormTag::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/superte1/themesbyte.com/wp-content/plugins/contact-form-7/includes/form-tag.php on line 542

Deprecated: Return type of WPCF7_FormTag::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/superte1/themesbyte.com/wp-content/plugins/contact-form-7/includes/form-tag.php on line 528

Deprecated: Return type of WPCF7_FormTag::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/superte1/themesbyte.com/wp-content/plugins/contact-form-7/includes/form-tag.php on line 516

Deprecated: Return type of WPCF7_FormTag::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/superte1/themesbyte.com/wp-content/plugins/contact-form-7/includes/form-tag.php on line 552

Deprecated: Return type of WPCF7_Validation::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/superte1/themesbyte.com/wp-content/plugins/contact-form-7/includes/validation.php on line 129

Deprecated: Return type of WPCF7_Validation::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/superte1/themesbyte.com/wp-content/plugins/contact-form-7/includes/validation.php on line 117

Deprecated: Return type of WPCF7_Validation::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/superte1/themesbyte.com/wp-content/plugins/contact-form-7/includes/validation.php on line 98

Deprecated: Return type of WPCF7_Validation::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/superte1/themesbyte.com/wp-content/plugins/contact-form-7/includes/validation.php on line 139

Deprecated: Implicit conversion from float 1.0E+19 to int loses precision in /home/superte1/themesbyte.com/wp-includes/class-wp-hook.php on line 76

Deprecated: Implicit conversion from float 1.0E+19 to int loses precision in /home/superte1/themesbyte.com/wp-includes/class-wp-hook.php on line 78

Deprecated: Implicit conversion from float 1.0E+19 to int loses precision in /home/superte1/themesbyte.com/wp-includes/class-wp-hook.php on line 76

Deprecated: Implicit conversion from float 1.0E+19 to int loses precision in /home/superte1/themesbyte.com/wp-includes/class-wp-hook.php on line 78

Deprecated: Implicit conversion from float 1.0E+40 to int loses precision in /home/superte1/themesbyte.com/wp-includes/class-wp-hook.php on line 76

Deprecated: Implicit conversion from float 1.0E+40 to int loses precision in /home/superte1/themesbyte.com/wp-includes/class-wp-hook.php on line 78

Deprecated: Implicit conversion from float 1.0E+40 to int loses precision in /home/superte1/themesbyte.com/wp-includes/class-wp-hook.php on line 76

Deprecated: Implicit conversion from float 1.0E+40 to int loses precision in /home/superte1/themesbyte.com/wp-includes/class-wp-hook.php on line 78

Deprecated: Implicit conversion from float 1.0E+19 to int loses precision in /home/superte1/themesbyte.com/wp-includes/class-wp-hook.php on line 76

Deprecated: Implicit conversion from float 1.0E+19 to int loses precision in /home/superte1/themesbyte.com/wp-includes/class-wp-hook.php on line 78

Deprecated: Optional parameter $day declared before required parameter $month_num is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/deprecated-functions.php on line 595

Deprecated: Optional parameter $customer_id declared before required parameter $meta_value is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/class-edd-db-customer-meta.php on line 95

Deprecated: Optional parameter $meta_key declared before required parameter $meta_value is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/class-edd-db-customer-meta.php on line 95

Deprecated: Optional parameter $customer_id declared before required parameter $meta_value is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/class-edd-db-customer-meta.php on line 123

Deprecated: Optional parameter $meta_key declared before required parameter $meta_value is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/class-edd-db-customer-meta.php on line 123

Deprecated: Optional parameter $meta_key declared before required parameter $meta_value is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/class-edd-customer.php on line 821

Deprecated: Optional parameter $meta_key declared before required parameter $meta_value is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/class-edd-customer.php on line 835

Deprecated: Optional parameter $download_id declared before required parameter $payment_id is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/payments/functions.php on line 395

Deprecated: Optional parameter $download_id declared before required parameter $user_purchase_info is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/download-functions.php on line 223

Deprecated: Optional parameter $download_id declared before required parameter $payment_id is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/download-functions.php on line 611

Deprecated: Optional parameter $download_id declared before required parameter $payment_id is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/download-functions.php on line 644

Deprecated: Optional parameter $download_id declared before required parameter $amount is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/download-functions.php on line 723

Deprecated: Optional parameter $download_id declared before required parameter $amount is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/download-functions.php on line 736

Deprecated: Optional parameter $download_id declared before required parameter $file_key is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/easy-digital-downloads/includes/download-functions.php on line 988

Deprecated: Optional parameter $args declared before required parameter $endpoint is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/breadcrumb-navxt/class.bcn_rest_controller.php on line 64

Deprecated: Optional parameter $override declared before required parameter $endpoint is implicitly treated as a required parameter in /home/superte1/themesbyte.com/wp-content/plugins/breadcrumb-navxt/class.bcn_rest_controller.php on line 64
WordPress multisite got 404 when accessing sub-sites – ThemesByte

ThemesByte

WordPress multisite got 404 when accessing sub-sites

If you getting 404 error on your multisite sub-sites you can fix this error by 3 steps.

  1. Go to your sites root folder you can see there wp-config.php Add below codes on wp-config.php files.
define('WP_ALLOW_MULTISITE', true); //change it to false afterwards  

Can you then go to /wp-admin/network/setup.php and check you copied everything correctly. Don’t forget to log in to your main site. If everything is okay then you can see like below screenshot.

2. Add the following to your wp-config.php file in your root folder.

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'yoursite.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

3. Add the following to your .htaccess file in your root folderreplacing other WordPress rules:

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
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]

And you’ve put your code inside <IfModule mod_rewrite.c></IfModule> which is not in the WordPress instructions

Rafiul

Rafiul

Hi, I am B M Rafiul Alam full-stack WordPress developer. I love to develop WordPress themes and Plugins. I developed a couple of themes and plugins for the Wordpress.org repository.


Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/superte1/themesbyte.com/wp-includes/formatting.php on line 2761