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

Homepage Menu Link Won’t Function

This function in /themes/lucid-press-child/js/custom-js.js is your problem. function homepageNavigationClasses(){ if(jQuery(‘body.home’).length){ //jQuery(‘#navigation a’).not(‘.sub-menu a’).click(function(event){ jQuery(‘#navigation a’).click(function(event){ var clickedLink = jQuery(this).text(); clickedLink = clickedLink.replace(/\s/g,”); if(!jQuery(this).parent().hasClass(‘page’)){ event.preventDefault(); //console.log(clickedLink); jQuery(‘html, body’).animate({ scrollTop: jQuery(“#”+clickedLink).offset().top – 400 }, 500); jQuery(‘#navigation li’).removeClass(‘active-hp-section’); jQuery(this).parent().addClass(‘active-hp-section’); } }); } } It’s looking for a ID to scroll the page too but it doesn’t have one … Read more

Multi-Network without plugin

Sorry for inconvenience caused and you are looking for multi network feature without plugin so you need to do some stuff on code to access sub sites: // Multisite define( ‘MULTISITE’, true ); define( ‘SUBDOMAIN_INSTALL’, false ); define( ‘PATH_CURRENT_SITE’, “https://wordpress.stackexchange.com/” ); define( ‘DOMAIN_CURRENT_SITE’, $_SERVER[‘HTTP_HOST’] ); // Likely not needed anymore (your config may vary) //define( … Read more