Mobile Redirect With Slug
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/ Others Notes PHP Coding Standards: WordPress Javascript
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/
Others
Notes
- PHP Coding Standards: WordPress
- Javascript Coding Standards: Airbnb
- DocBlock Standard: phpDocumentor
- 2 spaces for indent
- Repository: mobile-redirect-with-slug
Features
- [ ] Cookie support
- [ ] Redirect for some template (e.g. homepage)
- [ ] Option to not redirect tablet by using Mobile Detect
- [ ] i18n support
Thanks
- gulp-connect-php
Screenshots & previews.
- 01Install the plugin via plugin’s dashboard or download and upload this plugin into wp-content/plugins directory
- 02Activate the plugin through the Plugins menu in WordPress
- 03