How can I set up 2 fallback pages? | Community
Skip to main content
May 22, 2015
Solved

How can I set up 2 fallback pages?

  • May 22, 2015
  • 2 replies
  • 4297 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

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 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.

2 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 24, 2015

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 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.

Robert_Kelen3
New Participant
July 31, 2017

@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.

SanfordWhiteman
New Participant
July 31, 2017

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...

May 24, 2015

SB Demo​ Moving to Products and Support​ where I think more people will see Marketo related questions.