=== WP htaccess Control === Author: António Andrade Author URI: http://dardna.com/ Plugin URI: http://dardna.com/wp-htaccess-control Donate link: Tags: permalinks, permalink, author, htaccess, rewrite, redirect, admin, maintenance, pagination, category, category base, archive, archives Requires at least: 2.7 Tested up to: 3.1 Stable tag: 2.2.2 Interface to customize the permalinks (author, category, archives and pagination) and htaccess file generated by Wordpress. == Description == **WP htaccess Control** provides an interface to customize permalinks (author, category, archives and pagination) and the htaccess file generated by Wordpress. (Take a look at the screenshot...) Despite the name, many of the options now present on this plugin do not use the htaccess file but the wordpress internal rewrite. **Features:** * Customizing the htaccess file generated by Wordpress; * Removing the category base; * Customizing the Author Permalink Base; * Customizing Paginated Permalinks (translate the "page" word on permalinks to your own language); * Customizing the Search Permalink Base; * Category, Author and Tag 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 category base; * Maintenance mode. **Easy to use "Suggested htaccess" rules:** * Jim Morgan's htaccess; * Disable directory browsing; * Disable and redirect image 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; * 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. **Translated to:** pt_BR and pt_PT. (POT file is included, translations are welcome) == Installation == 1. Download **WP htaccess Control**; 2. Extract its content; 3. Upload the **wp-htaccess-control** folder to **wp-content/plugins**; 4. Activate it under **Plugins**; 5. Configurate it under **Settings** > **WP htaControl**. == Frequently Asked Questions == = Do you have any questions? = Suggestions are welcome and please report any bugs found! == Screenshots == 1. Administration page (as of v.2.0) == 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"*) == Changelog == = 2.2.2 (26/03/2011) = * *Fix:* 2.2 canonical bug fix resulted in errors which sould now be fixed. = 2.2.1 (26/03/2011) = * Reverted stable version to 2.1.2. = 2.2 (25/03/2011) = * *Feature:* adding Custom Search Base (thank you Fagner JB.); * *Fix:* fixed a long time known canonical redirection bug where links like "/?p=55" wouldn't redirect to "/post-slug" (causing duplicated content). * Confirmed compatibility with WP 3.1 (thank you Tatron, thank you John). = 2.1.2 (01/02/2011) = * *Fix:* fix on canonical url setting (thank you 8bitkid for pointing it out). = 2.1.1 (03/12/2010) = * *Fix:* small fix related to 2.1 and subcategories (thanks again for the report zamuta). = 2.1 (02/12/2010) = * *Fix:* fixed "customization" of urls using cyrillic alphabet and other characters generally not safe (thank you for the report zamuta). = 2.0 (27/11/2010) = * *Feature:* removal of the category base; * *Feature:* archives for categories with no base (ie.: *"http://example.com/my-category/2010/12"*) (again, good point webakimbo). = 1.9.1 (22/10/2010) = * *Feature:* adding "Author and Tag based archives". = 1.9 (22/10/2010) = * *Feature:* adding "Category-based archives" (good idea webakimbo). = 1.8 (09/09/2010) = * *Feature:* adding "Maintenance Mode"; * *Feature:* adding 403 error page "htaccess suggestion"; * *Fix:* deprecating the "Rewrite Pairs" as they are superseded by the "Custom htaccess"; * *Fix:* small fix to "original rules" on wordpress htaccess (thank you Agnes for the report). = 1.7 (01/09/2010) = * *Feature:* wordpress htaccess rules can be replaced or modified. = 1.6.1 (17/08/2010) = * *Fix:* Small update on Jim Morgan's htaccess; = 1.6 (17/08/2010) = * *Feature:* added "suggestion" to use Jim Morgan's htaccess as discussed in http://wordpress.org/extend/ideas/topic/wordpress-performance-improvement-that-does-not-require-a-plugin-simple-fix (thank you Will for pointing it out); = 1.5.5 (25/06/2010) = * *Feature:* added i18n files and portuguese translation; * *Fix:* mistagged stable version. = 1.5.4 (24/06/2010) = * *Fix:* Setting canonical "www." will no longer be done by htaccess but simply by modifying "site url" and "home" options; * Confirmed compatibility with WP 3.0. = 1.5.3 (01/06/2010) = * *Fix:* small regex correction on filtered pagination links. = 1.5.2 (02/05/2010) = * *Fix:* mistake on 1.5.1 would not add wordpress own htaccess rules (thank you JAB_au for the report). = 1.5.1 (01/05/2010) = * *Fix:* stripped slashes on custom htaccess (thank you Aleksey for the report); * *Fix:* regex correction for custom pagination permalink (link from page two to the first page would still point to second page); * *Fix:* (removed references to "hta_mr"). = 1.5 (25/03/2010) = * *Feature:* customization of the pagination permalinks; * *Feature:* "mod_gzip" and "mod_deflate". = 1.4.3 (22/03/2010) = * *Fix:* Custom Author Permalink now working when using wp_list_authors (thank you HW for the report); * *Change:* options page should now only be seen by admins; * *Change:* prepared l10n. = 1.4.2 (12/03/2010) = * *Change:* minor documentation fix (readme). = 1.4.1 (12/03/2010) = * *Fix:* debug left over on 1.4 for url canonization. = 1.4 (12/03/2010) = * *Feature:* added "Suggested htaccess"; * *Change:* improved ui. = 1.3 (10/03/2010) = * *Feature:* integrated the Custom Author Permalink with the Google XML Sitemap plugin; * *Change:* two fields to customize the htaccess were being used when only one was needed, for the sake of simplicity. = 1.2.1 (15/02/2010) = * *Fix:* bug on resetting all rules; * *Fix:* critical bug on empty htaccess custom rules; * Confirmed compatibility with WP 2.9.2. = 1.2 (15/02/2010) = * *Change:* improved htaccess customization giving now much more freedom. = 1.1.4 (05/02/2010) = * *Fix:* "Current htaccess file as it is generated by Wordpress" was not being printed; * *Change:* minor ui changes; * Confirmed compatibility with WP 2.9.1. = 1.1.3 (06/07/2009) = * *Fix:* mistake on wphtc_cap()'s preg_replace commited on 1.1.2 (thank you mattcav for the report); * *Fix:* php warning on updating options without htaccess rules. = 1.1.2 (01/07/2009) = * *Change:* better options handling (no longer creating empty option array on install or reset); * Confirmed compatibility with WP 2.8. = 1.1.1 (09/04/2009) = * *Change:* minor documentation fix (screenshot). = 1.1 (09/04/2009) = * *Change:* separated ui file; * *Change:* improved management and ui. = 1.0.1 (08/04/2009) = * Added GNU license. = 1.0 (08/04/2009) = * Initial public release (poor interface).