Frontend - Install Mailwizz & Wordpress

I am looking into settingup Mailwizz on the root along with a wordpress install.

The best way i have come up with is to install Mailwizz on the root with wordpress in a folder. Once this is done i want to create a front end on Mailwizz that redirects to the wordpress website when a user visits sy http://www.myURL.com

I installed the Landon front end but does anyone know how i could develop a front end to just redirect to the wordpress install??

Or does anyone have an y other ideas on how to do this??
 
I am looking into settingup Mailwizz on the root along with a wordpress install.

The best way i have come up with is to install Mailwizz on the root with wordpress in a folder. Once this is done i want to create a front end on Mailwizz that redirects to the wordpress website when a user visits sy http://www.myURL.com

I installed the Landon front end but does anyone know how i could develop a front end to just redirect to the wordpress install??

Or does anyone have an y other ideas on how to do this??
It might be better to install mwz into one folder (e.g. /public_html/mwz/) and wp into another one (/public_html/wp/), and then you can play with any redirection (from /public_html/) and never have to worry about one taking over the other due to nesting.
 
Thats a good idea.

I came up with a way around it and will share if i could get some help in making it a proper theme.

I edited the Landon theme and added in a PHP Redirect to the page. So now if i visit the page i automatically get redirected. Also incase i wanted to add in an affiliate system i am able to add a ref value which is also redirected.

So http://www.myURL.com will go tohttp://www.myURL.com/r
and
http://www.myURL.com/?ref=ABC123 will go to http://www.myURL.com/r?ref=ABC123

Nice one, what do you need for that? Maybe you could just forward/redirect to a wp where you have many themes available.
 
Nice one, what do you need for that? Maybe you could just forward/redirect to a wp where you have many themes available.

I think ill just explain what i did. Looked at trying to change Landon into my own theme to share and woud have to get a settings page which i cant figure out. Its only a PHP Redirect
 
To have MailWizz installed on the root and also get the Frontend to redirect to a wordpress install you need to do the following

Download the Landon Theme :- https://forum.mailwizz.com/threads/landon-a-free-frontend-landing-theme.230/

Edit the Landing.php page :- landon-frontend/views/layouts/landing.php

You can delete everything else from landing.php and add the following after you change YourWebsite.com to your website address and change YourWebsiteDirectory to the directory of your Wordpress install.

I added the if statement as i am thinking about adding an affilaite system to wordpress. with this i can pass values through my redirect.
PHP:
<?php
defined('MW_PATH') || exit('No direct script access allowed');
$ref = $_GET['ref'];

header('Status: 301 Moved Permanently', false, 301);

if(empty($ref)) {
        # ref empty
        header('Location: https://www.YourWebsite.com/YourWebsiteDirectory/');  
    } else {
        # $ref not empty
        header('Location: https://www.YourWebsite.com/YourWebsiteDirectory?ref='.$ref);  
    }
   
exit();  
?>

or you could use the absolute path and use the following code
PHP:
<?php
defined('MW_PATH') || exit('No direct script access allowed');
$ref = $_GET['ref'];

header('Status: 301 Moved Permanently', false, 301);

if(empty($ref)) {
        # ref empty
        header('Location: /YourWebsiteDirectory/');  
    } else {
        # $ref not empty
        header('Location: /YourWebsiteDirectory?ref='.$ref);  
    }
   
exit();  
?>

Note on Temporary/Permanent Redirections
By default, the type of redirection presented above is a Permanent one. This means the notify's search engines that a page has been permanently moved to another location.

If you are not bothered about the search engines you can remove this line

header('Status: 301 Moved Permanently', false, 301);
 
Not sure if you still need it, but to change the Landon theme, you can just use the developer tools within many modern browsers (FF, Chrome, etc, oft triggered with Ctrl+Shift+I), this avoids having to install extra programs (BlueFish, Expression Web Community, WebStorm, etc).
EditLandon.jpg
 
Back
Top