DudaMobile & DudaOne | Support Troubleshoot How to and Tutorials > DudaMobile > Redirect & Custom Domain > Redirect a WordPress site without the plugin

Redirect a WordPress site without the plugin

Table of contents


There are two ways you can redirect your Wordpress site. The first, and easiest, is to use our plugin. To get started with that follow the instructions found here: http://www.dudamobile.com/redirect/wordpress

When you first open the WordPress plugin, it may ask you to create a a new site. If it does, you'll want to set up the redirect manually instead. For most WordPress installations, this can be done in a few easy steps:

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.


Get Adobe Flash player


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

Once this is done, 

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

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

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

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.

Last modified
08:52, 19 Sep 2014



This page has no classifications.


Need more help?

Our support team is here to help.

Email Us