Redirect a WordPress site

Overview

NOTE: The DudaMobile redirect plugin for WordPress has been discontinued. Please use this article for redirecting WordPress sites.

Another note: Some WordPress plugins or themes may prevent this redirect from working. For example, Caching plugins will prevent this change from updating until the cache clears, themes which have separate mobile pages will not display the redirect when viewed from a phone, and the Jetpack plugin's mobilization scheme will override DudaMobile's.

Video

Steps

1. Login to your WordPress dashboard, this is usually http://www.yoursite.com/wp-admin

2. On the left side, click Appearance

3. Then click Editor

Once this is done, 

1. On the right side, find the HEADER.PHP FILE.

2. In the header.php file, find the <head> tag. This is usually a few lines from the top.

3. Paste the following redirect code immediately after the <head> tag:

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

4. Be sure to replace mobile.dudamobile.com/site/yoursitename with your mobile URL

5. Click update file at the bottom.

Once this file updates, your wordpress installation should redirect visitors to your mobile site!

 

Note: This tutorial is designed for WordPress.org sites. If you have a WordPress.com site, please click here.

 

×

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!