404 Error on Multisite
-
I have been struggling with implementing a second site on WP Multisite – the images weren’t displaying on my second site so I was trying to fix that problem using people’s suggestions in forums, but now I have a bigger problem – when I try to access one of my sites on multisite I get a 404 error
404
Not Found
The resource requested could not be found on this server!My .htaccess looks like this
# The following disables the display of a file # index of a folder if there is no index found # such as index.html, index.php, etc... Options -Indexes php_value display_errors on # If you wish to change a PHP Setting you need # to do it here and it will affect the folder # that this file is located in as well as all # sub-folders unless the sub-folder has it's # own .htaccess # # As an example to turn the PHP Setting # "magic_quotes_gpc" on you would uncomment # the following line: # php_flag magic_quotes_gpc on # # To set a value that is not on/off you need # to use the php_value setting in the following # format: # php_value setting_to_change = value # # If you have any questions please contact # support at support@mddhosting.com # BEGIN WordPress RewriteEngine on #RewriteCond %{HTTP_HOST} ^culturecorners.com [NC] #RewriteRule ^(.*)$ http://culturecorners.com/$1 [L,R=301] RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L] # END WordPressAnd my wp-config.php file looks like this
<?php /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://codex.wordpress.org/Editing_wp-config.php * * @package WordPress */ // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', xxx'); /** MySQL database username */ define('DB_USER', xxx'); /** MySQL database password */ define('DB_PASSWORD', 'xxx'); /** MySQL hostname */ define('DB_HOST', 'localhost'); /** Database Charset to use in creating database tables. */ define('DB_CHARSET', 'utf8'); /** The Database Collate type. Don't change this if in doubt. */ define('DB_COLLATE', ''); /** To fix images not displaying in multisite define( 'WP_ALLOW_MULTISITE', true ); /**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * * @since 2.6.0 */ define('AUTH_KEY', 'iojlqqdmq2y8kuorkvgpzgbloum35umnh5uuivrgnmuf4gvy78rnbl5svgwnifka'); define('SECURE_AUTH_KEY', '3yjfdvkfz4iurwcsnloo41vs8tkbr3nzk1pegljdq5dx843jimrrknvg9ekayxhk'); define('LOGGED_IN_KEY', 'oungqkacc222oixrr3dflt4w1p6eakvi1g7udu5hgbko6iidks0yi2tul7soeplb'); define('NONCE_KEY', 'ys3ftdbtxsjcoxlnyckcyhdw1nq1olembeclvren1kdq4mftpdwkpwtsdrcqfecy'); define('AUTH_SALT', 'xplk0cx9hytvo9dwesr621ojym9ymlmefafho7w9dizf8ksir8jfwlhmo0lthfk5'); define('SECURE_AUTH_SALT', 'uwotbcwzjczxg66gy5p1yrpru6u7fpkedoeb4evw866gso1cimdviuizcmjjbuqq'); define('LOGGED_IN_SALT', 'vdxcqahajvouyxb7d84h1dqyc90lldzqahvzmdqipfojh8vydyuowdl5zpk7jrp9'); define('NONCE_SALT', 'eafdjqc9eiidfclkr2d9wzkxd0qj0xvs3s79v6ekdujbkai77xtvp4rcxqyyvlsi'); /**#@-*/ /** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each * a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'wp_'; /** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. * * For information on other constants that can be used for debugging, * visit the Codex. * * @link https://codex.wordpress.org/Debugging_in_WordPress */ define('WP_DEBUG', false); /* Multisite */ define ('WP_MULTISITE_ALLOW', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'culturecorners.com'); define('PATH_CURRENT_SITE', '/wp/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); /* That's all, stop editing! Happy blogging. */ /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');I really appreciate any help!!!
-
Just a note that your wp-config as posted has your database password in it, which can be a bit risky!
#modlook
Oh thanks Laurena!!
I have deleted your personal info (password…).
My recommendation to you is please change this information immediate. Because, now all this personal info has become public!!
Thank you! I have already changed all the information on my account – I didn’t realize it was included in the wp-config file!
you are welcome π
Does anyone have any suggestions on how to fix the problem?
support threads:
https://wordpress.org/support/topic/multisite-404-error-1?replies=3Thanks Tara – I’ve seen a lot of support threads that mention the problem being a disconnect between defining the site as http://www.culturecorners.com and simply culturecorners.com … I’ve changed everything I can think of to match so that everything is either with the www. or without the http://www., but that didn’t make a difference.
The topic ‘404 Error on Multisite’ is closed to new replies.