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

Disable Multisite Rewrites

外掛說明

By default, WordPress Multisite uses certain rewrite rules for file uploads. This leads to a URL that doesn’t reflect the exact location of your files on the server. This plugin disables that functionality.

Note: This plugin is extremely simple in purpose. It requires additional setup before it can be used with most Multisite Networks.

If your Multisite was initially created using WordPress 3.5 or later, then you do not need this plugin

Before Use

This plugin is very specific in purpose. In order to use it, you will need to follow some steps first:

  1. Move your images from /wp-content/blogs.dir/SITENUM/files/ to /wp-content/uploads/sites/SITENUM/. SITENUM corresponds to the ID of each of your sub-sites.
  2. Modify the database for each site. I recommend using this awesome script (just don’t forget to delete it when you’re done!). You will need to update the image URLs in the database to replace http://site.example.com/files/ with http://site.example.com/wp-content/uploads/sites/SITENUM/
  3. Clear out the settings for each site for “Upload Path”, “Upload URL Path”, and “File Upload URL”. You can find these settings by going to Network Admin > Sites, then for each individual site, click the “Edit” link, then go to the Settings tab.

安裝方式

  1. Upload the disable-multisite-rewrites folder to your /wp-content/plugins/ directory
  2. Activate the plugin through the “Plugins” menu in WordPress

常見問題集

Your plugin broke all my images!

This plugin is very specific in purpose. In order to use it, you will need to follow some steps first. Please see the Before Use section

Your plugin didn’t do anything at all!

When you first created your Multisite Network, what version of WordPress were you running? If it was 3.5 or later, then you don’t need this plugin, and it won’t do anything for you.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Disable Multisite Rewrites〉的開發相關工作。

參與者

將〈Disable Multisite Rewrites〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0

  • Created the plugin