
內容簡介
WP htaccess Control(也可以稱為 WP htaccess 和 Rewrite Control)提供了一個界面來自定生成WordPress的htaccess文件以及其永久鏈接(作者、分類、歸檔、分頁和自定義分類法)。請查看截圖以更清晰地瞭解可用選項。
功能:
自定生成WordPress的htaccess文件;
從永久鏈接中移除任何自定義分類法的標題基礎;
從永久鏈接中移除分類基礎;
從永久鏈接中移除作者基礎;
自定義作者永久鏈接基礎;
自定義分頁永久鏈接(將永久鏈接中的“page”單詞翻譯為您自己的語言);
自定義(並規範)搜索永久鏈接基礎;
創建基於分類、作者、標籤和自定義分類法的歸檔頁面(例如:“http://your-site.com/category/stories/2010/12”,“http://your-site.com/author/admin/2010/12/page/2”和“http://your-site.com/tag/wordpress/2010/12”),即使您已經刪除了基礎標題,仍然可以使用這些頁面;
維護模式。
易於使用的“建議的htaccess”規則:
Jim Morgan的htaccess;
禁用目錄瀏覽;
禁用並重定向圖像熱鏈接;
禁用並重定向文件熱鏈接;
強制規範URL(WWW或非WWW);
限制最大文件上傳大小;
保護wp-config.php文件,使其不能被訪問;
保護.htaccess文件,使其不能被訪問;
保護來自無處的垃圾郵件機器人的comments.php;
設置500錯誤頁面;
設置403錯誤頁面;
如果可用,請使用mod_gzip;
如果可用,請使用mod_deflate;
在由服務器生成的錯誤頁面上設置管理電子郵件;
在由服務器生成的錯誤頁面上禁用ServerSignature。
已包含POT文件,歡迎翻譯。
已知問題
我仍未在WordPress多站點上進行測試,但已經報告了問題。
額外授權
移除分類基礎是基於iDope的 WP No Category Base,但是擴展了其功能以使其與分類歸檔(即:“http://example.com/my-category/2010/12”)一起使用。
搜索重定向基於Mark Jaquith的Nice Search,但擴展其功能,使其與自定義搜索基礎(即:“http://example.com/search-base/search-term”)一起使用。
穩定版本
對於WordPress 3.9以上版本,請使用版本3.4的插件。
對於WordPress 3.4以上版本,請使用版本3.3的插件。
對於 WordPress 3.4 之前的版本,請使用版本2.7.2.1的插件。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
WP htaccess Control should now really be called WP htaccess and Rewrite Control. It provides an interface to customize the htaccess file generated by WordPress but also its permalinks (author, category, archives, pagination and custom taxonomies). Have a look at the screenshot for a clearer idea of the available options.
Features:
Customizing the htaccess file generated by WordPress;
Removing any custom taxonomy’s slug base from permalinks;
Removing the category base from permalinks;
Removing the author base from permalinks;
Customizing the Author Permalink Base;
Customizing Paginated Permalinks (translate the “page” word on permalinks to your own language);
Customization (and canonization) of the Search Permalink Base;
Creation of Category, Author, Tag and Custom Taxonomy based archives (ex: “http://your-site.com/category/stories/2010/12”, “http://your-site.com/author/admin/2010/12/page/2” and “http://your-site.com/tag/wordpress/2010/12”), this will also work if you’ve removed the base slug;
Maintenance mode.
Easy to use “Suggested htaccess” rules:
Jim Morgan’s htaccess;
Disable directory browsing;
Disable and redirect image hotlinking;
Disable and redirect file hotlinking;
Force canonical url (WWW or non-WWW);
Limit maximum file upload size;
Protect wp-config.php file from access;
Protect .htaccess file from access;
Protect comments.php from spam bots coming from nowhere;
Set 500 error page;
Set 403 error page;
Use mod_gzip if available;
Use mod_deflate if available;
Set admin email on server generated error pages;
Disable ServerSignature on server generated error pages.
POT file is included, translations are welcome.
Known Issues
I still haven’t tested this under WordPress multisite, issues have however been reported.
Additional Credit
Removal of the category base is based on iDope’s WP No Category Base but extended so that it works with category archives (ie.: “http://example.com/my-category/2010/12”).
Search redirection is based on Mark Jaquith’s Nice Search but extended so that it works with custom search base (ie.: “http://example.com/search-base/search-term”).
Stable Versions
For WordPress versions above 3.9 use the plugin version 3.4.
For WordPress versions above 3.4 use the plugin version 3.3.
For WordPress versions prior to 3.4 use the plugin version 2.7.2.1.
