Multiple domains for multiple single installs

Serve both sites from the same installation. In your wp-config.php include the settings depending on $_SERVER[‘HTTP_HOST’]. Example for a complete wp-config.php: define( ‘DB_HOST’, ‘localhost’ ); define( ‘DB_CHARSET’, ‘utf8’ ); define( ‘DB_COLLATE’, ‘utf8_general_ci’ ); if ( ‘example.net’ === $_SERVER[‘HTTP_HOST’] ) // .net domain include ‘example.net.config.php’; elseif ( ‘example.com’ === $_SERVER[‘HTTP_HOST’] ) // .com domain include ‘example.com.config.php’; … Read more

Can I put my WordPress theme files in another folder?

The answer is yes. Like @Kvvaradha mentioned in his comments. If you put header.php footer.php index.php functions.php style.css must be in /wp-content/themes/your-theme-folder. And other your library, components and includes could be put anywhere that you prefer. But, make sure files and folders structure are flexible. Good luck in your codes 🙂

Isolating WordPress to a subfolder

If you want your WP site to function completely in subfolder, just set it up there as usual (including .htaccess) and do not add any directives to the root. Setup of .htaccess in root, while WP is in subfolder, is only necessary if you want to have core files (and so admin area) there, but … Read more

Unwanted redirect in admin area

I solved it with the help of a colleagues of mine by adding the following lines into wp-config.php: $_SERVER[‘HTTP_HOST’] = $_SERVER[‘HTTP_X_FORWARDED_HOST’]; $_SERVER[‘REQUEST_URI’] = ‘/stuff/wordpress’ . $_SERVER[‘REQUEST_URI’]; $_SERVER[‘SCRIPT_NAME’] = ‘/stuff/wordpress’ . $_SERVER[‘SCRIPT_NAME’]; $_SERVER[‘PHP_SELF’] = ‘/stuff/wordpress’ . $_SERVER[‘PHP_SELF’]; $_SERVER[‘REMOTE_ADDR’] = $_SERVER[‘HTTP_X_FORWARDED_FOR’];

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)