Optimiseweb_Redirects - Version 0.2.3

Version Notes

* Tidy up

Download this release

Release Info

Developer Kathir Vel
Extension Optimiseweb_Redirects
Version 0.2.3
Comparing to
See all releases


Code changes from version 0.2.2 to 0.2.3

app/code/community/Optimiseweb/Redirects/Model/Redirector.php CHANGED
@@ -48,7 +48,7 @@ class Optimiseweb_Redirects_Model_Redirector
48
  protected function disabledProductCheck($request)
49
  {
50
  if ($request->getActionName() !== 'noRoute') {
51
- if (Mage::getStoreConfig('optimisewebredirects/disabled_products/enabled')) {
52
  if (($request->getModuleName() == 'catalog') AND ( $request->getControllerName() == 'product') AND ( $request->getActionName() == 'view')) {
53
  if ($product = Mage::getModel('catalog/product')->load(Mage::app()->getRequest()->getParam('id'))) {
54
  if ($product->getStatus() == 2) {
48
  protected function disabledProductCheck($request)
49
  {
50
  if ($request->getActionName() !== 'noRoute') {
51
+ if ((bool) Mage::getStoreConfig('optimisewebredirects/disabled_products/enabled')) {
52
  if (($request->getModuleName() == 'catalog') AND ( $request->getControllerName() == 'product') AND ( $request->getActionName() == 'view')) {
53
  if ($product = Mage::getModel('catalog/product')->load(Mage::app()->getRequest()->getParam('id'))) {
54
  if ($product->getStatus() == 2) {
app/code/community/Optimiseweb/Redirects/doc/Readme.html ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h3>Mass / Bulk Redirects (301, 302, or any status) for Magento 404 Pages</h3>
2
+
3
+ <p>Magento has an internal URL Rewrite Management system. Magento can automatically add redirects for new and changed categories and products. However, it can be a laborious task to add all your custom redirects and/or redirects from an old website, one by one.</p>
4
+
5
+ <h3><b><u>How does this module work?</u></b></h3>
6
+
7
+ <p>Optimise Web's Bulk Redirects extension for Magento allows you to upload all your redirect data as a CSV file. This module is <b>purely CSV file based <u>(doesn't touch the database)</u></b>. Consider this as an alternative to adding 301 redirects into the .htaccess file.</p>
8
+
9
+ <p>When a missing URL is requested, Magento's routing system will first look within its database table for available rewrites. If Magento cannot find a suitable redirect, it will present your visitor with a 404 error page. This redirect module is set to work between Magento's internal check and the 404 page. When Magento cannot find a suitable redirect, this module will try and find one. If this module cannot find a matching redirect, the visitor will then be sent to the 404 page.</p>
10
+
11
+ <p>There are three methods of redirects that are available. They all work one after the other. The module implements a <b><u>Best Match</u></b> approach. If a matching redirect is found in the first method, Magento uses it and doesn't look at the rest of the CSV file or the remaining methods.</p>
12
+
13
+ <h3>Method 1 - Legacy</h3>
14
+
15
+ <p>I called this Legacy as it was the first option I wrote for this module. Many Magento retailers still use this option. I did not want their websites to stop working. So it is still here.</p>
16
+
17
+ <p><b>CSV Format:</b><br />
18
+ http://www.oldurl.com/oldpath;http://www.newurl.com/newpath
19
+ <br />
20
+ Notice the semicolon. In the past, this module used a semicolon to separate the URLs. Please note that this option uses just a single cell of the CSV file in Excel.
21
+ <br />
22
+ A sample file is available here http://optimiseweb.co.uk/magento-modules/1-Legacy.csv
23
+ </p>
24
+ <h3>Method 2 - Redirects System v1.0</h3>
25
+ <p>Many retailers were struggling with the semicolon and single cell based redirects. So, I made this into a three cell redirect.</p>
26
+ <p>
27
+ <b>CSV Format:</b>
28
+ <br />
29
+ http://www.oldurl.com/oldpath,http://www.newurl.com/newpath,status_code
30
+ <br />
31
+ Notice the comma as a separator. I have now given an option for you to customise the delimiter / separator. Excel saves the CSV using commas. However, you can choose to use any character, even a pipe delimiter.
32
+ <br />
33
+ The status_code will be 301 or 302. Now this version on, you can define the status code (required for the redirects to work) as well.
34
+ <br />
35
+ Another big improvement to this module is the wildcard character. You can define a wildcard character in the options screen and use it in the CSV file.
36
+ <br />
37
+ e.g. http://www.oldurl.com/oldpath/*,http://www.newurl.com/newpath/newsublevel,301
38
+ <br />
39
+ This will match URL that follows http://www.oldurl.com/oldpath/ and redirect them all to http://www.newurl.com/newpath/newsublevel.
40
+ <br />
41
+ A sample file is available here http://optimiseweb.co.uk/magento-modules/2-Redirects.v1.0.csv
42
+ </p>
43
+ <h3>Method 2 - Query String Based Redirects</h3>
44
+ <p>The query string based option was developed primarily for retailers moving away from old school ecommerce platforms that used query strings in their URLs. It can also be used by existing Magento retailers who have deleted a product attribute, stopped a Google Adwords campaign, etc.</p>
45
+ <p>
46
+ <b>CSV Format:</b>
47
+ <br />
48
+ http://www.oldurl.com/oldbasepath,prod_id,170,http://www.newurl.com/newproducturl,status_code
49
+ <br />
50
+ The settings, delimiter, wildcard options are similar to Method 2.
51
+ <br />
52
+ The second column is the query string name and the third column is the query string value.
53
+ <br />
54
+ e.g. http://www.oldurl.com/oldbasepath,prod_id,170,http://www.newurl.com/newproducturl,301
55
+ <br />
56
+ This will match all of the following
57
+ <br />
58
+ http://www.oldurl.com/oldbasepath?prod_id=170
59
+ <br />
60
+ http://www.oldurl.com/oldbasepath?cat_id=24&amp;prod_id=170
61
+ <br />
62
+ http://www.oldurl.com/oldbasepath?prod_id=170&amp;cat_id=24
63
+ <br />
64
+ Please Note: This module works on a best match basis. If you had a redirect setup for the cat_id query before the prod_id query, both the above URLs will redirect to the category page. This is because cat_id is the best match. If you setup prod_id before cat_id, then the product page would take priority. It is very rare that old ecommerce systems will call both the category id and product id in the same URL. However, I am just illustrating the best match scenario.
65
+ <br />
66
+ A sample file is available here http://optimiseweb.co.uk/magento-modules/3-QueryStringBasedRedirects.csv
67
+ </p>
68
+ <br />
69
+ <br />
70
+ <h3>
71
+ <b>
72
+ <u>PLEASE READ THIS</u>
73
+ </b>
74
+ </h3>
75
+ <p>
76
+ - This module is widely tested and works on most standard Magento setups.<br />
77
+ - If the module isn't working for you, you have most likely not followed the standard Magento module installation routine. Read the FAQs below.<br />
78
+ - Before leaving negative feedback or writing an email to us, please check the following - <b>Turn Off Compilation Before Installation, Clear Cache After Installation, Log Off and Log Back Into the Admin</b><br />
79
+ - 99% of the time, when users install the module and it doesn't work, we investigate and find out that there are other problems (server issues, file and folder permissions, conflicting modules, etc.).<br />
80
+ - Please note that this is a very useful, but free module. We cannot be doing email ping pong all day long. If you need us to look into a problem, send us a private message with your Magento admin (with full access rights) password and FTP details. Without this we will have to embark on a email ping pong and that takes a lot of time. We hope you will understand.<br />
81
+ - Thank you very much for taking time to use our module.<br />
82
+ </p>
83
+ <h3>
84
+ <b>
85
+ <u>Features</u>
86
+ </b>
87
+ </h3>
88
+ <p>
89
+ - If you disable a product in Magento and add a redirect for that product via this module, the redirect will not work as according to Magento the product is still in the system. You will have to delete the product for the redirect to work. I'll look into finding a work around for this.<br />
90
+ <br />
91
+ <b>Download and Upload of CSV</b>
92
+ <br />
93
+ - Using the system configuration panel. <b>System &gt; Configuration &gt; Optimise Web (tab) &gt; Mass 301 Redirects</b><br />
94
+ - Always remember to download the previously uploaded CSV and add new redirects to it. Uploading a new CSV will overwrite the old CSV and you will lose all previously uploaded 301 redirects.<br />
95
+ <br />
96
+ </p>
97
+
98
+ <h3><b><u>Frequently asked questions</u></b></h3>
99
+
100
+ <p><b>1. Why am I not seeing the system settings? Why am I getting a 404 error?</b></p>
101
+
102
+ <p>As with the installation of all Magento modules, please clear the cache folders and log out of the admin area and log back in. Please also flush your CSS and JS caches - just to be sure.</p>
103
+
104
+ <p><b>2. Should I backup Magento's files and database?</b></p>
105
+
106
+ <p>This module does not add or make database changes during the install process. But yes, please make it a point to backup your files and database before installing or upgrading any Magento module.</p>
107
+
108
+ <p><b>3. Will the module work with compilation turned on?</b></p>
109
+
110
+ <p>Yes. Still, make sure you disable compilation when installing the module. You can turn on compilation after installation and clearing the cache folders.</p>
111
+
112
+ <p><b>4. Do you offer support for this extension?</b></p>
113
+
114
+ <p>This is a free extension and support will be limited. We have placed a support link on the settings page of the module. Please write to us and we'll do our best to help you out.</p>
115
+
116
+ <h3><b><u>Important:</u></b></h3>
117
+
118
+ <p>To be able to develop the module further and provide better support, we capture your Magento version, module version, admin URL and admin email address when you access the admin > module settings page. We do not share this data with anyone. We do not use this data to send you marketing communication. We do this purely for support and statistical purposes.</p>
119
+
120
+ <p>If you do not agree to this, please do not install the module. Or, write to us to request a bespoke version of the module.</p>
app/code/community/Optimiseweb/Redirects/etc/system.xml CHANGED
@@ -26,7 +26,7 @@
26
  <show_in_website>1</show_in_website>
27
  <show_in_store>1</show_in_store>
28
  <groups>
29
-
30
  <hint>
31
  <frontend_model>ow_redirects/adminhtml_system_config_fieldset_hint</frontend_model>
32
  <sort_order>0</sort_order>
@@ -34,25 +34,24 @@
34
  <show_in_website>1</show_in_website>
35
  <show_in_store>1</show_in_store>
36
  </hint>
37
-
38
  <disabled_products translate="label comment" module="ow_redirects">
39
  <label>Disabled Products Check</label>
40
- <comment>
41
- <![CDATA[
42
- <div class="notice-msg" style="background-image: none!important; padding: 5px;">
43
- <p>With this option set to 'Yes', you can prevent visitors of disabled products from going to a 404 page. This feature has now been added due to popular demand.</p>
44
- <p style="margin-bottom: 0;">It is recommended to leave this option turned off unless you fully understand what the implications are. With this option set to 'Yes', this module will make a data call to check the product's status before every product page load. This could add a very tiny bit of additional processing before every product page load.</p>
45
- </div>
46
- ]]>
47
- </comment>
48
  <frontend_type>text</frontend_type>
49
- <sort_order>1</sort_order>
50
  <show_in_default>1</show_in_default>
51
  <show_in_website>1</show_in_website>
52
  <show_in_store>1</show_in_store>
53
  <fields>
54
  <enabled translate="label tooltip comment" module="ow_redirects">
55
  <label>Redirect disabled products?</label>
 
 
 
 
 
 
 
56
  <frontend_type>select</frontend_type>
57
  <source_model>adminhtml/system_config_source_yesno</source_model>
58
  <sort_order>1</sort_order>
@@ -64,7 +63,7 @@
64
  </disabled_products>
65
 
66
  <general translate="label comment" module="ow_redirects">
67
- <label>Legacy - Upload / Download CSV File</label>
68
  <comment>
69
  <![CDATA[
70
  <div class="notice-msg" style="background-image: none!important; padding: 5px;">
@@ -76,12 +75,12 @@
76
  ]]>
77
  </comment>
78
  <frontend_type>text</frontend_type>
79
- <sort_order>2</sort_order>
80
  <show_in_default>1</show_in_default>
81
  <show_in_website>1</show_in_website>
82
  <show_in_store>1</show_in_store>
83
  <fields>
84
- <upload translate="label comment" module="ow_redirects">
85
  <label>Upload Redirects File</label>
86
  <comment>If you have already uploaded a CSV file and wish to add or edit the URLs, please download the current CSV file and reupload that file after making the changes.</comment>
87
  <frontend_type>file</frontend_type>
@@ -93,7 +92,7 @@
93
  <show_in_website>1</show_in_website>
94
  <show_in_store>1</show_in_store>
95
  </upload>
96
- <download translate="label comment" module="ow_redirects">
97
  <label>Download Redirects File</label>
98
  <comment>Right click on this link and click on 'Save Link As...'</comment>
99
  <frontend_model>ow_redirects/system_config_backend_download</frontend_model>
@@ -120,12 +119,12 @@
120
  ]]>
121
  </comment>
122
  <frontend_type>text</frontend_type>
123
- <sort_order>3</sort_order>
124
  <show_in_default>1</show_in_default>
125
  <show_in_website>1</show_in_website>
126
  <show_in_store>1</show_in_store>
127
  <fields>
128
- <upload translate="label comment" module="ow_redirects">
129
  <label>Upload Redirects File</label>
130
  <comment>If you have already uploaded a CSV file and wish to add or edit the URLs, please download the current CSV file and reupload that file after making the changes.</comment>
131
  <frontend_type>file</frontend_type>
@@ -137,7 +136,7 @@
137
  <show_in_website>1</show_in_website>
138
  <show_in_store>1</show_in_store>
139
  </upload>
140
- <download translate="label comment" module="ow_redirects">
141
  <label>Download Redirects File</label>
142
  <comment>Right click on this link and click on 'Save Link As...'</comment>
143
  <frontend_model>ow_redirects/system_config_backend_download1</frontend_model>
@@ -146,7 +145,7 @@
146
  <show_in_website>1</show_in_website>
147
  <show_in_store>1</show_in_store>
148
  </download>
149
- <delimiter translate="label comment" module="ow_redirects">
150
  <label>Delimiter</label>
151
  <comment>Defaults to comma (,). Depends on how you save your CSV file.</comment>
152
  <frontend_type>text</frontend_type>
@@ -155,7 +154,7 @@
155
  <show_in_website>1</show_in_website>
156
  <show_in_store>1</show_in_store>
157
  </delimiter>
158
- <wildcardcharacter translate="label comment" module="ow_redirects">
159
  <label>Wildcard Character</label>
160
  <comment>Defaults to asterisk (*).</comment>
161
  <frontend_type>text</frontend_type>
@@ -166,7 +165,7 @@
166
  </wildcardcharacter>
167
  </fields>
168
  </redirects1>
169
-
170
  <querystring translate="label comment" module="ow_redirects">
171
  <label>Query String Based Redirects</label>
172
  <comment>
@@ -182,12 +181,12 @@
182
  ]]>
183
  </comment>
184
  <frontend_type>text</frontend_type>
185
- <sort_order>4</sort_order>
186
  <show_in_default>1</show_in_default>
187
  <show_in_website>1</show_in_website>
188
  <show_in_store>1</show_in_store>
189
  <fields>
190
- <upload translate="label comment" module="ow_redirects">
191
  <label>Upload Redirects File</label>
192
  <comment>If you have already uploaded a CSV file and wish to add or edit the URLs, please download the current CSV file and reupload that file after making the changes.</comment>
193
  <frontend_type>file</frontend_type>
@@ -199,7 +198,7 @@
199
  <show_in_website>1</show_in_website>
200
  <show_in_store>1</show_in_store>
201
  </upload>
202
- <download translate="label comment" module="ow_redirects">
203
  <label>Download Redirects File</label>
204
  <comment>Right click on this link and click on 'Save Link As...'</comment>
205
  <frontend_model>ow_redirects/system_config_backend_downloadquerystringfile</frontend_model>
@@ -208,7 +207,7 @@
208
  <show_in_website>1</show_in_website>
209
  <show_in_store>1</show_in_store>
210
  </download>
211
- <delimiter translate="label comment" module="ow_redirects">
212
  <label>Delimiter</label>
213
  <comment>Defaults to comma (,). Depends on how you save your CSV file.</comment>
214
  <frontend_type>text</frontend_type>
@@ -217,7 +216,7 @@
217
  <show_in_website>1</show_in_website>
218
  <show_in_store>1</show_in_store>
219
  </delimiter>
220
- <wildcardcharacter translate="label comment" module="ow_redirects">
221
  <label>Wildcard Character</label>
222
  <comment>Defaults to asterisk (*).</comment>
223
  <frontend_type>text</frontend_type>
@@ -228,27 +227,26 @@
228
  </wildcardcharacter>
229
  </fields>
230
  </querystring>
231
-
232
  <cataloguesearch translate="label comment" module="ow_redirects">
233
- <label>Redirect to Catalogue Search (Experimental Feature)</label>
234
- <comment>
235
- <![CDATA[
236
- <div class="notice-msg" style="background-image: none!important; padding: 5px;">
237
- <p>Use this as a last resort option. Instead of landing on a 404 page, you can get the module to redirect your visitor to a search page.</p>
238
- <p>Just a word of caution - enabling this option will make it so that there are no 404 errors on your website. This will even redirect missing images to a catalogue search.</p>
239
- <p>At the moment, the search keyword will be triggered by breaking up the last URL path. e.g. /electronics/iphone-5s.html will trigger a search for "iphone 5s"</p>
240
- <p style="margin-bottom: 0;">I hope to add more options and improve this feature in the future versions. Please send any suggestions that you might have.</p>
241
- </div>
242
- ]]>
243
- </comment>
244
  <frontend_type>text</frontend_type>
245
- <sort_order>5</sort_order>
246
  <show_in_default>1</show_in_default>
247
  <show_in_website>1</show_in_website>
248
  <show_in_store>1</show_in_store>
249
  <fields>
250
  <enabled translate="label tooltip comment" module="ow_redirects">
251
  <label>Enable?</label>
 
 
 
 
 
 
 
 
 
252
  <frontend_type>select</frontend_type>
253
  <source_model>adminhtml/system_config_source_yesno</source_model>
254
  <sort_order>1</sort_order>
@@ -261,13 +259,6 @@
261
 
262
  <menu translate="label comment" module="ow_redirects">
263
  <label>Admin Menu Control</label>
264
- <comment>
265
- <![CDATA[
266
- <div class="notice-msg" style="background-image: none!important; padding: 5px;">
267
- <p style="margin-bottom: 0;">The 'Optimise Web' menu group acts as a parent menu item for the various modules developed by Optimise Web. If you do not wish to see the link in the admin menu and would rather manually visit the System Config.</p>
268
- </div>
269
- ]]>
270
- </comment>
271
  <frontend_type>text</frontend_type>
272
  <sort_order>999</sort_order>
273
  <show_in_default>1</show_in_default>
@@ -276,6 +267,12 @@
276
  <fields>
277
  <optimiseweball_enabled translate="label tooltip comment" module="ow_redirects">
278
  <label>Enable the 'Optimise Web' Admin menu group?</label>
 
 
 
 
 
 
279
  <frontend_type>select</frontend_type>
280
  <source_model>adminhtml/system_config_source_yesno</source_model>
281
  <sort_order>1</sort_order>
@@ -285,6 +282,12 @@
285
  </optimiseweball_enabled>
286
  <ow_redirects_enabled translate="label tooltip comment" module="ow_redirects">
287
  <label>Enable the 'Mass 301 Redirects' link from the Admin menu?</label>
 
 
 
 
 
 
288
  <frontend_type>select</frontend_type>
289
  <source_model>adminhtml/system_config_source_yesno</source_model>
290
  <sort_order>1</sort_order>
26
  <show_in_website>1</show_in_website>
27
  <show_in_store>1</show_in_store>
28
  <groups>
29
+
30
  <hint>
31
  <frontend_model>ow_redirects/adminhtml_system_config_fieldset_hint</frontend_model>
32
  <sort_order>0</sort_order>
34
  <show_in_website>1</show_in_website>
35
  <show_in_store>1</show_in_store>
36
  </hint>
37
+
38
  <disabled_products translate="label comment" module="ow_redirects">
39
  <label>Disabled Products Check</label>
 
 
 
 
 
 
 
 
40
  <frontend_type>text</frontend_type>
41
+ <sort_order>2</sort_order>
42
  <show_in_default>1</show_in_default>
43
  <show_in_website>1</show_in_website>
44
  <show_in_store>1</show_in_store>
45
  <fields>
46
  <enabled translate="label tooltip comment" module="ow_redirects">
47
  <label>Redirect disabled products?</label>
48
+ <tooltip>
49
+ <![CDATA[
50
+ <p>With this option set to 'Yes', you can prevent visitors of disabled products from going to a 404 page. This feature was added due to popular demand.</p>
51
+ <p><strong><span style="color:#df280a;">If the above 'Redirect non-404 requests?' is set to 'Yes', it overrides this option.</span></strong></p>
52
+ <p style="margin-bottom: 0;">It is recommended to leave this option turned off unless you fully understand what the implications are. With this option set to 'Yes', this module will make a data call to check the product's status before every product page load. This could add a very tiny bit of additional processing before every product page load.</p>
53
+ ]]>
54
+ </tooltip>
55
  <frontend_type>select</frontend_type>
56
  <source_model>adminhtml/system_config_source_yesno</source_model>
57
  <sort_order>1</sort_order>
63
  </disabled_products>
64
 
65
  <general translate="label comment" module="ow_redirects">
66
+ <label>Legacy - Upload / Download CSV File (DO NOT USE THIS - USE v1.0)</label>
67
  <comment>
68
  <![CDATA[
69
  <div class="notice-msg" style="background-image: none!important; padding: 5px;">
75
  ]]>
76
  </comment>
77
  <frontend_type>text</frontend_type>
78
+ <sort_order>3</sort_order>
79
  <show_in_default>1</show_in_default>
80
  <show_in_website>1</show_in_website>
81
  <show_in_store>1</show_in_store>
82
  <fields>
83
+ <upload translate="label tooltip comment" module="ow_redirects">
84
  <label>Upload Redirects File</label>
85
  <comment>If you have already uploaded a CSV file and wish to add or edit the URLs, please download the current CSV file and reupload that file after making the changes.</comment>
86
  <frontend_type>file</frontend_type>
92
  <show_in_website>1</show_in_website>
93
  <show_in_store>1</show_in_store>
94
  </upload>
95
+ <download translate="label tooltip comment" module="ow_redirects">
96
  <label>Download Redirects File</label>
97
  <comment>Right click on this link and click on 'Save Link As...'</comment>
98
  <frontend_model>ow_redirects/system_config_backend_download</frontend_model>
119
  ]]>
120
  </comment>
121
  <frontend_type>text</frontend_type>
122
+ <sort_order>4</sort_order>
123
  <show_in_default>1</show_in_default>
124
  <show_in_website>1</show_in_website>
125
  <show_in_store>1</show_in_store>
126
  <fields>
127
+ <upload translate="label tooltip comment" module="ow_redirects">
128
  <label>Upload Redirects File</label>
129
  <comment>If you have already uploaded a CSV file and wish to add or edit the URLs, please download the current CSV file and reupload that file after making the changes.</comment>
130
  <frontend_type>file</frontend_type>
136
  <show_in_website>1</show_in_website>
137
  <show_in_store>1</show_in_store>
138
  </upload>
139
+ <download translate="label tooltip comment" module="ow_redirects">
140
  <label>Download Redirects File</label>
141
  <comment>Right click on this link and click on 'Save Link As...'</comment>
142
  <frontend_model>ow_redirects/system_config_backend_download1</frontend_model>
145
  <show_in_website>1</show_in_website>
146
  <show_in_store>1</show_in_store>
147
  </download>
148
+ <delimiter translate="label tooltip comment" module="ow_redirects">
149
  <label>Delimiter</label>
150
  <comment>Defaults to comma (,). Depends on how you save your CSV file.</comment>
151
  <frontend_type>text</frontend_type>
154
  <show_in_website>1</show_in_website>
155
  <show_in_store>1</show_in_store>
156
  </delimiter>
157
+ <wildcardcharacter translate="label tooltip comment" module="ow_redirects">
158
  <label>Wildcard Character</label>
159
  <comment>Defaults to asterisk (*).</comment>
160
  <frontend_type>text</frontend_type>
165
  </wildcardcharacter>
166
  </fields>
167
  </redirects1>
168
+
169
  <querystring translate="label comment" module="ow_redirects">
170
  <label>Query String Based Redirects</label>
171
  <comment>
181
  ]]>
182
  </comment>
183
  <frontend_type>text</frontend_type>
184
+ <sort_order>5</sort_order>
185
  <show_in_default>1</show_in_default>
186
  <show_in_website>1</show_in_website>
187
  <show_in_store>1</show_in_store>
188
  <fields>
189
+ <upload translate="label tooltip comment" module="ow_redirects">
190
  <label>Upload Redirects File</label>
191
  <comment>If you have already uploaded a CSV file and wish to add or edit the URLs, please download the current CSV file and reupload that file after making the changes.</comment>
192
  <frontend_type>file</frontend_type>
198
  <show_in_website>1</show_in_website>
199
  <show_in_store>1</show_in_store>
200
  </upload>
201
+ <download translate="label tooltip comment" module="ow_redirects">
202
  <label>Download Redirects File</label>
203
  <comment>Right click on this link and click on 'Save Link As...'</comment>
204
  <frontend_model>ow_redirects/system_config_backend_downloadquerystringfile</frontend_model>
207
  <show_in_website>1</show_in_website>
208
  <show_in_store>1</show_in_store>
209
  </download>
210
+ <delimiter translate="label tooltip comment" module="ow_redirects">
211
  <label>Delimiter</label>
212
  <comment>Defaults to comma (,). Depends on how you save your CSV file.</comment>
213
  <frontend_type>text</frontend_type>
216
  <show_in_website>1</show_in_website>
217
  <show_in_store>1</show_in_store>
218
  </delimiter>
219
+ <wildcardcharacter translate="label tooltip comment" module="ow_redirects">
220
  <label>Wildcard Character</label>
221
  <comment>Defaults to asterisk (*).</comment>
222
  <frontend_type>text</frontend_type>
227
  </wildcardcharacter>
228
  </fields>
229
  </querystring>
230
+
231
  <cataloguesearch translate="label comment" module="ow_redirects">
232
+ <label>Redirect to Catalogue Search (DEPRECATED - DO NOT USE THIS)</label>
 
 
 
 
 
 
 
 
 
 
233
  <frontend_type>text</frontend_type>
234
+ <sort_order>6</sort_order>
235
  <show_in_default>1</show_in_default>
236
  <show_in_website>1</show_in_website>
237
  <show_in_store>1</show_in_store>
238
  <fields>
239
  <enabled translate="label tooltip comment" module="ow_redirects">
240
  <label>Enable?</label>
241
+ <tooltip>
242
+ <![CDATA[
243
+ <p>Use this as a last resort option. Instead of landing on a 404 page, you can get the module to redirect your visitor to a search page.</p>
244
+ <p>Just a word of caution - enabling this option will make it so that there are no 404 errors on your website. This will even redirect missing images to a catalogue search.</p>
245
+ <p>At the moment, the search keyword will be triggered by breaking up the last URL path. e.g. /electronics/iphone-5s.html will trigger a search for "iphone 5s"</p>
246
+ <p><strong><span style="color:#df280a;">If the above 'Redirect non-404 requests?' is set to 'Yes', it overrides this option.</span></strong></p>
247
+ <p style="margin-bottom: 0;"><strong><span style="color:#df280a;">This feature is not being developed anymore.</span></strong></p>
248
+ ]]>
249
+ </tooltip>
250
  <frontend_type>select</frontend_type>
251
  <source_model>adminhtml/system_config_source_yesno</source_model>
252
  <sort_order>1</sort_order>
259
 
260
  <menu translate="label comment" module="ow_redirects">
261
  <label>Admin Menu Control</label>
 
 
 
 
 
 
 
262
  <frontend_type>text</frontend_type>
263
  <sort_order>999</sort_order>
264
  <show_in_default>1</show_in_default>
267
  <fields>
268
  <optimiseweball_enabled translate="label tooltip comment" module="ow_redirects">
269
  <label>Enable the 'Optimise Web' Admin menu group?</label>
270
+ <tooltip>
271
+ <![CDATA[
272
+ <p style="margin-bottom: 0;">The 'Optimise Web' menu group acts as a parent menu item for the various modules developed by Optimise Web. If you do not wish to see the link in the admin menu and would rather manually visit the System Config.</p>
273
+ </div>
274
+ ]]>
275
+ </tooltip>
276
  <frontend_type>select</frontend_type>
277
  <source_model>adminhtml/system_config_source_yesno</source_model>
278
  <sort_order>1</sort_order>
282
  </optimiseweball_enabled>
283
  <ow_redirects_enabled translate="label tooltip comment" module="ow_redirects">
284
  <label>Enable the 'Mass 301 Redirects' link from the Admin menu?</label>
285
+ <tooltip>
286
+ <![CDATA[
287
+ <p style="margin-bottom: 0;">The 'Optimise Web' menu group acts as a parent menu item for the various modules developed by Optimise Web. If you do not wish to see the link in the admin menu and would rather manually visit the System Config.</p>
288
+ </div>
289
+ ]]>
290
+ </tooltip>
291
  <frontend_type>select</frontend_type>
292
  <source_model>adminhtml/system_config_source_yesno</source_model>
293
  <sort_order>1</sort_order>
package.xml CHANGED
@@ -1,20 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Optimiseweb_Redirects</name>
4
- <version>0.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Broken links can affect traffic and conversions. The Optimise Web Redirects extension helps setup bulk 301 redirects.</summary>
10
- <description>Magento has an internal URL Rewrite Management system. It can be a laborious task to add all your redirects, one by one.&#xD;
11
- &#xD;
12
- The Optimise Web Redirects extension allows you to upload all your redirect data as a CSV file.</description>
13
- <notes>* Added additional event - before exit</notes>
14
  <authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
15
- <date>2014-10-17</date>
16
- <time>15:01:45</time>
17
- <contents><target name="magecommunity"><dir name="Optimiseweb"><dir name="Redirects"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="43abb095865b190b0c2507bb9f086aa2"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Download.php" hash="7aa495fa61b5dc8701ede38c4e00b343"/><file name="Download1.php" hash="83690ba4e42f356d92aecf3c5ef6d5d3"/><file name="Downloadquerystringfile.php" hash="51b51f70aa042bd09586fd03cfc55125"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="ca14b5ce332105a9a21a0bdc61200919"/></dir><dir name="Model"><file name="Redirector.php" hash="a326da5cc26ca8960a1f3c71cce3852d"/></dir><dir name="etc"><file name="adminhtml.xml" hash="dd58dc054f2933de6f68a1986c444ab5"/><file name="config.xml" hash="35fb05077f9bd1bf285397f1325b9c38"/><file name="system.xml" hash="d74393068cf94bdf27bc094eb5111201"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Optimiseweb_Redirects.xml" hash="52171a52ca4993b6d25b51df3b762897"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Optimiseweb_Redirects.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="optimiseweb"><dir name="redirects"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="4ffed9569ab276f56b53f9e0de93eadc"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Optimiseweb_Redirects</name>
4
+ <version>0.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Set up bulk 301 redirects for 404 pages by uploading the URL data in a CSV file. No HTACCESS or DB changes!</summary>
10
+ <description>Set up bulk 301 redirects for 404 pages by uploading the URL data in a CSV file. No HTACCESS or DB changes!</description>
11
+ <notes>* Tidy up</notes>
 
 
12
  <authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
13
+ <date>2014-12-15</date>
14
+ <time>12:29:19</time>
15
+ <contents><target name="magecommunity"><dir name="Optimiseweb"><dir name="Redirects"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="43abb095865b190b0c2507bb9f086aa2"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Download.php" hash="7aa495fa61b5dc8701ede38c4e00b343"/><file name="Download1.php" hash="83690ba4e42f356d92aecf3c5ef6d5d3"/><file name="Downloadquerystringfile.php" hash="51b51f70aa042bd09586fd03cfc55125"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="ca14b5ce332105a9a21a0bdc61200919"/></dir><dir name="Model"><file name="Redirector.php" hash="121617daa7ae28632bdf80e3989029ac"/></dir><dir name="doc"><file name="Readme.html" hash="303e2db27b7d7c6fe0b3efdc5e18aaff"/></dir><dir name="etc"><file name="adminhtml.xml" hash="dd58dc054f2933de6f68a1986c444ab5"/><file name="config.xml" hash="35fb05077f9bd1bf285397f1325b9c38"/><file name="system.xml" hash="c956a94feb35c6cdaf1a36fcdf998141"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Optimiseweb_Redirects.xml" hash="52171a52ca4993b6d25b51df3b762897"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Optimiseweb_Redirects.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="optimiseweb"><dir name="redirects"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="4ffed9569ab276f56b53f9e0de93eadc"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>