Redirect to mobile site (with or without slug url)
Simple plugin that allows you to redirect mobile’s user to mobile site (with or without slug url)
For example, it redirects
desktop.com/
to mobile.com/
desktop.com/first/
to mobile.com/first/
desktop.com/second-post/
to mobile.com/second-post/
wp-content/plugins
directorySettings > Mobile Redirect
or click Settings
on plugin’s dashboardSave Changes
Activate the plugin on your plugin dashboard (/wp-admin/plugins.php
)
Detect mobile
by using wp_is_mobile
function then redirect it