Adding the True argument

Overview

When a redirect sends the viewer to a jumbled version of the mobile home page, the snippet ,true will have to be added to the redirect script. Normally this happens because the original home page has two different URLs that direct viewers to the same page.

 

For example:

This can cause our system to think the second URL is a different page and it will automatically create a mock up for it. 

Steps

1. Login to your hosting provider and open the index file in the file manager. If your original site was built using a CMS, open the header box/HTML box where the script was pasted.

 

2. Add ,true between the closing quotations and the closing bracket after the mobile address. The example below demonstrates where to place the snippet of script in red text.

<script type="text/javascript" src="http://static.dudamobile.com/DM_redirect.js"></script> <script type="text/javascript">DM_redirect("http://mobile.dudamobile.com/site/example",true);</script> 

3. Save your changes and publish if needed. Your site will now redirect to the correct page you have created in the mobile editor.

Considerations

One thing to keep in mind is that all pages with ,true in the redirect, will be redirected to the mobile home page. To enable inner pages to redirect to their correct mobile pages, one can place the original redirect script within their header.

Don't remember how to redirect a site? Check out our Basic Redirect Post.

If your site comes from Wordpress, you will have to deactivate the plugin and add the redirect the traditional way. To learn how to implement the redirect script, view our WordPress Redirect Post.

 

×

Priority Phone Support

English phone support is available 18 hours a day,
Monday through Friday, 3am to 9pm (EST).

United States +1 866-776-1550 3am to 9pm (Eastern)
United Kingdom +44 (0)800-011-9071 8am to 2am (London)
France +33 (0)9-75-18-84-74 9am to 3am (Paris)
Israel +972 (0)3-720-8922 10am to 4am (Jerusalem)
Australia +61 (0)2-8880-9166 7pm to 1pm (Sydney)
To schedule a call in French, Portuguese, Hebrew or Russian, please email us at prioritysupport@dudamobile.com
×

Please Log in as a DudaPro

Priority Phone Support is available exclusively to DudaPros. Log in to your DudaPro account now to see our international support numbers.

Log In
Not a DudaPro? Start a free trial now!