WordPress Multisite with Wildcard Certificates not mapping correctly

It seems that I was getting wrong the virtual host configuration file to redirect all http requests to https This is my current working configuration: /etc/apache2/sites-available/a.com.conf <VirtualHost *:80> ServerAdmin [email protected] ServerName a.com ServerAlias *.a.com DocumentRoot /var/www/a.com/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined RewriteEngine on RewriteCond %{SERVER_NAME} =a1.a.com [OR] RewriteCond %{SERVER_NAME} =a.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost> … Read more

Dynamic Banner Text based on Subdomain

You can put you code in functions.php where you define the string, for example: <?php function get_banner_text() { $url = $_SERVER[“REQUEST_URI”]; if (strpos($url, “bob.”)) { $banner_text = “Welcome to Agent Bob’s Portal!”; } else { $banner_text = “Default text here”; } return $banner_text; } ?> Afterwards for example in header.php of your theme you could … Read more

After switch domain, some parts of my site still point to my old domain

Some themes use url in /wp-admin settings menu url. Please also change this. And another problem is full-urls in your db. You should change these urls in db. https://wordpress.org/support/article/changing-the-site-url/#changing-the-url-directly-in-the-database BTW, if you are using phpmyadmin, search old url in all tables (you can search all tables when click the db not any table and you … Read more

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