Is there a way to set up 2 fall back pages per a multi-domain web site in marketo?
To my understanding we can only set up one fall back page per 1 marketo instance.
Is the a way to set up 2 fallback pages?
Solved! Go to Solution.
Sure. Well, actually, you still use one fallback page as configured within the Marketo UI, but you can have it redirect transparently based on the domain the user entered.
Go into your fallback page's Landing Page Actions >> Edit Page Meta Tags.
Set Robots = 'noindex,nofollow'
In Custom HEAD HTML enter the following:
<SCRIPT>
document.location.replace('//www'+document.location.hostname.substring(document.location.hostname.indexOf('.')));
</SCRIPT>
<NOSCRIPT>
<META http-equiv="refresh" content="0;URL='http://www.example.com/'" />
</NOSCRIPT>
The code above assumes you want http://pages.example.com/non-existent-landing-page to fall back to http://www.example.com, but it can be tweaked to whatever you want.
In the <NOSCRIPT> section, change 'www.example.com' to whatever you want your super-default domain to be: the tiny fraction of users with JS disabled will still go to this domain, but everybody else will be dynamically redirected.
SB Demo Moving to Products and Support where I think more people will see Marketo related questions.
Sure. Well, actually, you still use one fallback page as configured within the Marketo UI, but you can have it redirect transparently based on the domain the user entered.
Go into your fallback page's Landing Page Actions >> Edit Page Meta Tags.
Set Robots = 'noindex,nofollow'
In Custom HEAD HTML enter the following:
<SCRIPT>
document.location.replace('//www'+document.location.hostname.substring(document.location.hostname.indexOf('.')));
</SCRIPT>
<NOSCRIPT>
<META http-equiv="refresh" content="0;URL='http://www.example.com/'" />
</NOSCRIPT>
The code above assumes you want http://pages.example.com/non-existent-landing-page to fall back to http://www.example.com, but it can be tweaked to whatever you want.
In the <NOSCRIPT> section, change 'www.example.com' to whatever you want your super-default domain to be: the tiny fraction of users with JS disabled will still go to this domain, but everybody else will be dynamically redirected.
Sanford Whiteman, can this approach also be used where there are different top level domains for the multiple domains in question? For example, megabrand.com (and their megabrand instance) has two different Domain Aliases set up for brands they own (let's call them brand_a.com and brand_b.com, with info.brand_a.com and info.brand_b.com as their two landing page domain aliases); and they want any fallback from bad links to go to the respective brand domain.
It can absolutely be used across private domains (that's kind of the idea). Unfortunately, though, Marketo has made this much harder to do by stopping relative URLs as fallback pages. You can still do it by hacking the UI, if you want to go that route...
Is "hacking the UI" something you've written on elsewhere? Where does this fall on the "lots of work" to "a little Javascript'll do ya" continuum?
It's like my linebreak token method. So no coding, but takes some nerve.
Well, I'm no programmer, but that all made sense to me, and I do understand what you mean about hacking the UI now. Thank you!
What sort of hack is required to achieve the desired effect in this example?
You've gotta get the fallback page to be just /pagename.html. The UI will change this to http://pagename.html. So you need to replay the request and take out the extra stuff.
Makes sense. Then the JS from your original post is somehow adapted to sort whatever one calls the middle part of the domain name instead (choosing the .brand_a. or .brand_b. part)? Even still, aren't we talking about the same single page in Marketo?