Website display confusion after reinstalling wordpress

Is your WordPress website actually installed in the folder

/system ?

I am asking since the WP admin link seems to be leading to
http://blog.mhzj.xyz/system/wp-admin

If you have the site hosted within a folder of the server instead of the root folder, please follow the steps here to set it up correctly:

Moving WordPress

Since this is not done, the browser seems to be trying to get the CSS (stylesheet) of the theme from
https://blog.mhzj.xyz/wp-content/themes/twentytwenty/style.css

instead of
https://blog.mhzj.xyz/system/wp-content/themes/twentytwenty/style.css (where it currently seems to be present)

index.php file content-/** Loads the WordPress Environment and Template */
require __DIR__ . ‘/system/wp-blog-header.php’;

wp-config.php file content-define( ‘WP_SITEURL’, ‘https://blog.mhzj.xyz/system’);
define( ‘WP_HOME’, ‘https://blog.mhzj.xyz’);
define( ‘WP_CONTENT_DIR’, ABSPATH . ‘/wp-content’ );
define(‘WP_CONTENT_URL’ , WP_HOME . ‘/wp-content’);
define( ‘WPMU_PLUGIN_DIR’ , WP_CONTENT_DIR . ‘/mu-plugins’ );
define( ‘WPMU_PLUGIN_URL’ , WP_CONTENT_URL . ‘/mu-plugins’ );
define( ‘MUPLUGINDIR’ , WP_CONTENT_DIR . ‘/mu-plugins’ );
define( ‘WP_PLUGIN_DIR’ , WP_CONTENT_DIR . ‘/plugins’ );
define( ‘WP_PLUGIN_URL’ , WP_CONTENT_URL . ‘/plugins’ );
define( ‘PLUGINDIR’ , WP_CONTENT_DIR . ‘/plugins’ );

I changed the contents of the document myself, is there anything incorrect?

I modified the wp-config.php and index.php

OK, now the problem has been solved



Source link