Version Description
(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);
Download this release
Release Info
Developer | andrad |
Plugin | WP htaccess Control |
Version | 1.6 |
Comparing to | |
See all releases |
Code changes from version 1.5.5 to 1.6
- lang/wp-htaccess-control-pt_PT.mo +0 -0
- lang/wp-htaccess-control-pt_PT.po +6 -3
- readme.txt +10 -8
- wp-htaccess-control-ui.php +7 -0
- wp-htaccess-control.php +23 -2
lang/wp-htaccess-control-pt_PT.mo
CHANGED
Binary file
|
lang/wp-htaccess-control-pt_PT.po
CHANGED
@@ -8,12 +8,15 @@ msgstr ""
|
|
8 |
"Project-Id-Version: WP htaccess Control 1.5.5\n"
|
9 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-htaccess-control\n"
|
10 |
"POT-Creation-Date: 2010-06-25 20:48+0000\n"
|
11 |
-
"PO-Revision-Date: 2010-06-26
|
12 |
-
"Last-Translator: António
|
13 |
-
"Language-Team:
|
14 |
"MIME-Version: 1.0\n"
|
15 |
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
|
|
|
17 |
|
18 |
#: wp-htaccess-control-ui.php:13
|
19 |
msgid "Please log in as admin"
|
8 |
"Project-Id-Version: WP htaccess Control 1.5.5\n"
|
9 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-htaccess-control\n"
|
10 |
"POT-Creation-Date: 2010-06-25 20:48+0000\n"
|
11 |
+
"PO-Revision-Date: 2010-06-26 15:49-0000\n"
|
12 |
+
"Last-Translator: António Anddrade <dardna@dardna.com>\n"
|
13 |
+
"Language-Team: António Andrade <dardna@dardna.com>\n"
|
14 |
"MIME-Version: 1.0\n"
|
15 |
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
18 |
+
"X-Poedit-Language: Portuguese\n"
|
19 |
+
"X-Poedit-Country: PORTUGAL\n"
|
20 |
|
21 |
#: wp-htaccess-control-ui.php:13
|
22 |
msgid "Please log in as admin"
|
readme.txt
CHANGED
@@ -5,14 +5,15 @@ Plugin URI: http://dardna.com/wp-htaccess-control
|
|
5 |
Donate link:
|
6 |
Tags: permalinks, permalink, author, htaccess, rewrite, redirect
|
7 |
Requires at least: 2.7
|
8 |
-
Tested up to: 3.0
|
9 |
-
Stable tag: 1.
|
10 |
|
11 |
Interface to add custom rules to the htaccess file generated by Wordpress and customisation of the Author Permalink and Pagination Permalinks.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
**WP htaccess Control** provides an interface to add custom htaccess rules to the htaccess file generated by Wordpress and customisation of the Author Permalink Base and of Paginated Permalinks. (Take a look at the screenshot...)
|
|
|
16 |
|
17 |
**Features:**
|
18 |
|
@@ -22,6 +23,7 @@ Interface to add custom rules to the htaccess file generated by Wordpress and cu
|
|
22 |
|
23 |
**Easy to use "Suggested htaccess" rules:**
|
24 |
|
|
|
25 |
* Disable directory browsing;
|
26 |
* Disable and redirect image hotlinking;
|
27 |
* Force canonical url (WWW or non-WWW);
|
@@ -56,11 +58,15 @@ Suggestions are welcome and please report any bugs found!
|
|
56 |
1. Administration page (as of v.1.5)
|
57 |
|
58 |
== Changelog ==
|
|
|
|
|
|
|
|
|
59 |
= 1.5.5 (25/06/2010) =
|
60 |
* Feature: added i18n files and portuguese translation;
|
61 |
* Fix: mistagged stable version.
|
62 |
|
63 |
-
=1.5.4 (24/06/2010)=
|
64 |
* Fix: Setting canonical "www." will no longer be done by htaccess but simply by modifying "site url" and "home" options;
|
65 |
* Confirmed compatibility with WP 3.0.
|
66 |
|
@@ -130,8 +136,4 @@ Suggestions are welcome and please report any bugs found!
|
|
130 |
* Added GNU license.
|
131 |
|
132 |
= 1.0 (08/04/2009) =
|
133 |
-
* Initial public release (poor interface).
|
134 |
-
|
135 |
-
== Upgrade Notice ==
|
136 |
-
= 1.4.1 =
|
137 |
-
* Clean up on debug left over from 1.4 for url canonization.
|
5 |
Donate link:
|
6 |
Tags: permalinks, permalink, author, htaccess, rewrite, redirect
|
7 |
Requires at least: 2.7
|
8 |
+
Tested up to: 3.0.1
|
9 |
+
Stable tag: 1.6
|
10 |
|
11 |
Interface to add custom rules to the htaccess file generated by Wordpress and customisation of the Author Permalink and Pagination Permalinks.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
**WP htaccess Control** provides an interface to add custom htaccess rules to the htaccess file generated by Wordpress and customisation of the Author Permalink Base and of Paginated Permalinks. (Take a look at the screenshot...)
|
16 |
+
**I still haven't tested this under Wordpress multisite, some issues have however been reported.**
|
17 |
|
18 |
**Features:**
|
19 |
|
23 |
|
24 |
**Easy to use "Suggested htaccess" rules:**
|
25 |
|
26 |
+
* Jim Morgan's htaccess;
|
27 |
* Disable directory browsing;
|
28 |
* Disable and redirect image hotlinking;
|
29 |
* Force canonical url (WWW or non-WWW);
|
58 |
1. Administration page (as of v.1.5)
|
59 |
|
60 |
== Changelog ==
|
61 |
+
|
62 |
+
= 1.6 (17/08/2010) =
|
63 |
+
* 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);
|
64 |
+
|
65 |
= 1.5.5 (25/06/2010) =
|
66 |
* Feature: added i18n files and portuguese translation;
|
67 |
* Fix: mistagged stable version.
|
68 |
|
69 |
+
= 1.5.4 (24/06/2010) =
|
70 |
* Fix: Setting canonical "www." will no longer be done by htaccess but simply by modifying "site url" and "home" options;
|
71 |
* Confirmed compatibility with WP 3.0.
|
72 |
|
136 |
* Added GNU license.
|
137 |
|
138 |
= 1.0 (08/04/2009) =
|
139 |
+
* Initial public release (poor interface).
|
|
|
|
|
|
|
|
wp-htaccess-control-ui.php
CHANGED
@@ -92,6 +92,13 @@ $WPhtc_data=get_option('WPhtc_data');
|
|
92 |
<h3><?php _e('htaccess Suggestions', 'wp-htaccess-control'); ?></h3>
|
93 |
</div>
|
94 |
<table class="form-table wphtc-inputs">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
<tr valign="top">
|
96 |
<th scope="row" style="width:18%;"><?php _e('ServerSignature', 'wp-htaccess-control'); ?></th>
|
97 |
<td style="width:3%;" valign="middle">
|
92 |
<h3><?php _e('htaccess Suggestions', 'wp-htaccess-control'); ?></h3>
|
93 |
</div>
|
94 |
<table class="form-table wphtc-inputs">
|
95 |
+
<tr valign="top">
|
96 |
+
<th scope="row" style="width:18%;"><?php _e("Jim Morgan's htaccess", 'wp-htaccess-control'); ?></th>
|
97 |
+
<td style="width:3%;" valign="middle">
|
98 |
+
<input type="checkbox" name="WPhtc_jim_morgan_hta" value="true" <?php if($WPhtc_data['jim_morgan_hta']){ echo "checked";}?>/>
|
99 |
+
</td>
|
100 |
+
<td valign="middle"><?php _e("Using <a href='http://www.webmasterworld.com/apache/4053973.htm'>Jim Morgan's wordpress htaccess</a> has been reported to \"speed up your WP mod_rewrite code by a factor of more than two\".", 'wp-htaccess-control'); ?></td>
|
101 |
+
</tr>
|
102 |
<tr valign="top">
|
103 |
<th scope="row" style="width:18%;"><?php _e('ServerSignature', 'wp-htaccess-control'); ?></th>
|
104 |
<td style="width:3%;" valign="middle">
|
wp-htaccess-control.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP htaccess Control
|
4 |
Plugin URI: http://dardna.com/wp-htaccess-control
|
5 |
Description: Provides an interface to add custom htaccess rules to the htaccess file generated by wordpress. Also provides customisation of the Author Permalink Base and of Paginated Permalinks.
|
6 |
-
Version: 1.
|
7 |
Author: António Andrade
|
8 |
Author URI: http://dardna.com
|
9 |
*/
|
@@ -228,7 +228,27 @@ if (!class_exists("WPhtc")) {
|
|
228 |
$new_rules.="Header append Vary User-Agent env=!dont-vary\n";
|
229 |
$new_rules.="</IfModule>\n";
|
230 |
}
|
231 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
return $new_rules;
|
233 |
}
|
234 |
# WP-htaccess Control options page interface
|
@@ -288,6 +308,7 @@ if (!class_exists("WPhtc")) {
|
|
288 |
# get Custom Pagination Permalink
|
289 |
$WPhtc_data['cpp']=$_POST['WPhtc_cpp'];
|
290 |
# get htaccess Suggestions
|
|
|
291 |
$WPhtc_data['disable_serversignature']=$_POST['WPhtc_disable_serversignature'];
|
292 |
$WPhtc_data['disable_indexes']=$_POST['WPhtc_disable_indexes'];
|
293 |
$WPhtc_data['up_limit']=(is_numeric($_POST['WPhtc_up_limit'])&&$_POST['WPhtc_up_limit']>0)?$_POST['WPhtc_up_limit']:'';
|
3 |
Plugin Name: WP htaccess Control
|
4 |
Plugin URI: http://dardna.com/wp-htaccess-control
|
5 |
Description: Provides an interface to add custom htaccess rules to the htaccess file generated by wordpress. Also provides customisation of the Author Permalink Base and of Paginated Permalinks.
|
6 |
+
Version: 1.6
|
7 |
Author: António Andrade
|
8 |
Author URI: http://dardna.com
|
9 |
*/
|
228 |
$new_rules.="Header append Vary User-Agent env=!dont-vary\n";
|
229 |
$new_rules.="</IfModule>\n";
|
230 |
}
|
231 |
+
if($WPhtc_data['jim_morgan_hta']){
|
232 |
+
$new_rules.="\nRewriteEngine on\n";
|
233 |
+
$new_rules.="# Unless you have set a different RewriteBase preceding this point,\n";
|
234 |
+
$new_rules.="# you may delete or comment-out the following RewriteBase directive:\n";
|
235 |
+
$new_rules.="RewriteBase /\n";
|
236 |
+
$new_rules.="# if this request is for \"/\" or has already been rewritten to WP\n";
|
237 |
+
$new_rules.="RewriteCond $1 ^(index\.php)?$ [OR]\n";
|
238 |
+
$new_rules.="# or if request is for image, css, or js file\n";
|
239 |
+
$new_rules.="RewriteCond $1 \.(gif|jpg|css|js|ico)$ [NC,OR]\n";
|
240 |
+
$new_rules.="# or if URL resolves to existing file\n";
|
241 |
+
$new_rules.="RewriteCond %{REQUEST_FILENAME} -f [OR]\n";
|
242 |
+
$new_rules.="# or if URL resolves to existing directory\n";
|
243 |
+
$new_rules.="RewriteCond %{REQUEST_FILENAME} -d\n";
|
244 |
+
$new_rules.="# then skip the rewrite to WP\n";
|
245 |
+
$new_rules.="RewriteRule ^(.*)$ - [S=1]\n";
|
246 |
+
$new_rules.="# else rewrite the request to WP\n";
|
247 |
+
$new_rules.="RewriteRule . /index.php [L]\n";
|
248 |
+
}
|
249 |
+
else{
|
250 |
+
$new_rules.="\n".$rules;
|
251 |
+
}
|
252 |
return $new_rules;
|
253 |
}
|
254 |
# WP-htaccess Control options page interface
|
308 |
# get Custom Pagination Permalink
|
309 |
$WPhtc_data['cpp']=$_POST['WPhtc_cpp'];
|
310 |
# get htaccess Suggestions
|
311 |
+
$WPhtc_data['jim_morgan_hta']=$_POST['WPhtc_jim_morgan_hta'];
|
312 |
$WPhtc_data['disable_serversignature']=$_POST['WPhtc_disable_serversignature'];
|
313 |
$WPhtc_data['disable_indexes']=$_POST['WPhtc_disable_indexes'];
|
314 |
$WPhtc_data['up_limit']=(is_numeric($_POST['WPhtc_up_limit'])&&$_POST['WPhtc_up_limit']>0)?$_POST['WPhtc_up_limit']:'';
|