PHP script to redirect traffic based on website accessed

I’am not absolutely sure what you mean but probably something like this may help you: if( $_SERVER[ ‘SERVER_NAME’ ] == ‘website1.com’ ): header( ‘Location: https://www.example.com/w1’ ); exit; elseif( $_SERVER[ ‘SERVER_NAME’ ] == ‘website2.com’ ): header( ‘Location: https://www.example.com/w2’ ); exit; endif;

Sub-directory domain on subdomain multisite?

I didn’t find an answer on here. But on the net, it’s in German. I thought I share it here, because it is a neat solution. As suggested I added below cookie constants to the wp-config.php. define( ‘ADMIN_COOKIE_PATH’, “https://wordpress.stackexchange.com/” ); define( ‘COOKIEPATH’, ” ); define( ‘SITECOOKIEPATH’, ” ); And replaced the content of the .htaccess … Read more