這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Simple Mobile URL Redirect

描述

A simple mobile redirect plugin for those who use a separate website URL for their mobile content. Simply put in the full path URL and you are ready to send users to your mobile-only content.

螢幕截圖

  • The admin page

安裝

This section describes how to install the plugin and get it working.

e.g.

  1. Upload mobile-redirect.php to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Settings > Mobile Redirect.
  4. Check Enable Redirect.
  5. Put in a full path URL (inluding http://) to the website you would like to redirect mobile traffic to.
  6. Select the method of redirect you want. 301 is generally the best option.
  7. Hit Save and you are done.

常見問題

I’ve disabled the plugin but the redirect is still happening, how do I fix this?

First, check if this is happening on another computer. If not, the redirect is simply cached on your machine. Clear the cache and you should be fine.

If the redirect remains everywhere, check if there are other redirect scripts running.

Can I link to pages inside of my site?

(v1.1) Yes, but mobile users will be stuck only viewing that page as the plugin will redirect them back there if they navigate away.
You will still need to use a full path as well, and make sure the URL is exactly as what will be redirected including / at the end if necessary.
As of v1.2, you can use the Redirect Once option to redirect users to an internal page on their first visit, afterward they’ll be able to browse the site normally.

Does this redirect iPad traffic?

Yes. The built in WordPress function redirects tablets as mobile

評價

2021年7月30日
Wow, after deactivating and deleting this shitty not working plugin, it still redirects me to that page ! I deleted that page, cleared browser cache, cleared LS cache, but it sill does it ! 🙁 Any advice ?
2019年7月6日
I am really amazed with a simple very lightweight plugin can do so much. Thanks a lot to the author. For those who are using https:// protocol, to avoid infinite redirection Edit the plugin, modify line 34 in mobile-redirect.php and change http:// to https://. I hope this will be supported for the next future releases.
2016年12月13日
Nice and neat plugin! But this plugin is non-functional, when you do "request desktop site" from Chrome for Android.
閱讀全部29個評價

貢獻者及開發者

“Simple Mobile URL Redirect” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Simple Mobile URL Redirect 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.7.2

  • Tested in 5.5, it works!

1.7.1

  • Fixed home page only redirect
  • Fixed various bugs in WordPress 4.1+
  • Removed tablet option and moved entirely to wp_is_mobile() function

1.6.1

  • Reverted a fix that broke redirect home page only

1.6

  • Fixed issues with caching

1.5

  • Added support for windows phones
  • Added redirect home page option
  • Added json redirect support
  • Tested tablet support, appears to be working as intended

1.4.1

  • Fixed php notice HTTP_ALL

1.4

  • Added support to chose how to redirect tablet traffic

1.3

  • Updated included instructions

1.2

  • Code clean up
  • Use core’s mobile detection
  • New option to redirect only once

1.1

  • Fixed bug with missing functon is_mobile()

1.0

  • Stable version and includes 301/302 option