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

SS Old URLs

描述

SS Old URLs allows you to add URL redirects through the WP admin for old content URLs.

For example, if your old site had its about page at /about.html, but your new WordPress site uses a nice URL like /about/, you can add the rule /about.html ==> /about/. This will preserve any existing links to the old URL. In addition, we perform our redirects as “301” redirects so you should maintain as much “Google Juice” as possible.

This plugin is especially useful for developers and designers who are porting older websites to WordPress. You can also use it if your move pages around or change URLs/slugs for any reason.

螢幕截圖

  • The SS Old URLs setup interface.

安裝

  1. Upload ssoldurls.php to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Navigate to Settings –> Old URLs to add your redirect rules.

常見問題

My redirect isn’t working? Why is that?

Our redirect code is only fired if no other WordPress page is found for the given URL. For example, if you add the rule /contact-us/ => /contact/, but there is a WordPress page with the slug /contact-us/, that WordPress page will be shown.

When exactly do you check for redirect rules?

The plugin uses the “status_header” plugin hook to detect when WordPress tries to send a 404 status to the header. (That means it couldn’t find a page or post for the given URL.) We then check against the redirect rules and perform a 301 redirect if a rule is found.

What if I want to force the redirect?

You can force the redirect by copying the 301 code from the SS Old URLs settings page to your .htaccess file. For example, by pasting this code above the rewrite code for WordPress, you’ll ensure the redirect is performed before WordPress even gets to have a chance to resolve the URL.Redirect 301 /about.php /about/

評價

There are no reviews for this plugin.

貢獻者及開發者

“SS Old URLs” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 SS Old URLs 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0

  • This is the launch version. No changes yet.