Version Notes
* Added a check for not visible product URLs
* Removed module and Magento version reporting
* However, module and Magento version will be sent via query string to the support link
Download this release
Release Info
Developer | Kathir Vel |
Extension | Optimiseweb_Redirects |
Version | 0.3.5 |
Comparing to | |
See all releases |
Code changes from version 0.3.2 to 0.3.5
- app/code/community/Optimiseweb/Redirects/Block/Adminhtml/System/Config/Fieldset/Hint.php +2 -3
- app/code/community/Optimiseweb/Redirects/Model/Redirector.php +22 -2
- app/code/community/Optimiseweb/Redirects/etc/config.xml +7 -1
- app/code/community/Optimiseweb/Redirects/etc/system.xml +92 -69
- package.xml +7 -5
app/code/community/Optimiseweb/Redirects/Block/Adminhtml/System/Config/Fieldset/Hint.php
CHANGED
@@ -53,7 +53,7 @@ class Optimiseweb_Redirects_Block_Adminhtml_System_Config_Fieldset_Hint extends
|
|
53 |
|
54 |
public function getOptimiseWebEmailLink()
|
55 |
{
|
56 |
-
$email = '
|
57 |
$emailLink = 'mailto:' . $email;
|
58 |
return $emailLink;
|
59 |
}
|
@@ -74,8 +74,7 @@ class Optimiseweb_Redirects_Block_Adminhtml_System_Config_Fieldset_Hint extends
|
|
74 |
|
75 |
public function getPxUrl()
|
76 |
{
|
77 |
-
$url = 'https://optimiseweb.co.uk/magento-connect/assets/logo/optimiseweb.
|
78 |
-
$url .= $this->getPxParams();
|
79 |
return $url;
|
80 |
}
|
81 |
|
53 |
|
54 |
public function getOptimiseWebEmailLink()
|
55 |
{
|
56 |
+
$email = 'sid@optimiseweb.co.uk';
|
57 |
$emailLink = 'mailto:' . $email;
|
58 |
return $emailLink;
|
59 |
}
|
74 |
|
75 |
public function getPxUrl()
|
76 |
{
|
77 |
+
$url = 'https://optimiseweb.co.uk/magento-connect/assets/logo/optimiseweb.jpg';
|
|
|
78 |
return $url;
|
79 |
}
|
80 |
|
app/code/community/Optimiseweb/Redirects/Model/Redirector.php
CHANGED
@@ -25,6 +25,7 @@ class Optimiseweb_Redirects_Model_Redirector
|
|
25 |
$actionName = $request->getActionName();
|
26 |
|
27 |
$disabledProductCheck = $this->disabledProductCheck($request);
|
|
|
28 |
$disabledCategoryCheck = $this->disabledCategoryCheck($request);
|
29 |
|
30 |
$requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . $request->getRequestUri(), '/');
|
@@ -32,12 +33,15 @@ class Optimiseweb_Redirects_Model_Redirector
|
|
32 |
//$requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . '/' . $disabledProductCheck, '/');
|
33 |
$requestUrl = rtrim(Mage::getUrl() . $disabledProductCheck, '/');
|
34 |
}
|
|
|
|
|
|
|
|
|
35 |
if ($disabledCategoryCheck) {
|
36 |
//$requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . '/' . $disabledCategoryCheck, '/');
|
37 |
$requestUrl = rtrim(Mage::getUrl() . $disabledCategoryCheck, '/');
|
38 |
}
|
39 |
-
|
40 |
-
if (($actionName == 'noRoute') OR $disabledProductCheck OR $disabledCategoryCheck) {
|
41 |
Mage::dispatchEvent('optimiseweb_redirects_before_legacy', array('request_url' => &$requestUrl));
|
42 |
$this->doRedirectsLegacy($requestUrl);
|
43 |
Mage::dispatchEvent('optimiseweb_redirects_before_v1', array('request_url' => &$requestUrl));
|
@@ -67,6 +71,22 @@ class Optimiseweb_Redirects_Model_Redirector
|
|
67 |
return FALSE;
|
68 |
}
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
protected function disabledCategoryCheck($request)
|
71 |
{
|
72 |
if ($request->getActionName() !== 'noRoute') {
|
25 |
$actionName = $request->getActionName();
|
26 |
|
27 |
$disabledProductCheck = $this->disabledProductCheck($request);
|
28 |
+
$notvisibleProductCheck = $this->notvisibleProductCheck($request);
|
29 |
$disabledCategoryCheck = $this->disabledCategoryCheck($request);
|
30 |
|
31 |
$requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . $request->getRequestUri(), '/');
|
33 |
//$requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . '/' . $disabledProductCheck, '/');
|
34 |
$requestUrl = rtrim(Mage::getUrl() . $disabledProductCheck, '/');
|
35 |
}
|
36 |
+
if ($notvisibleProductCheck) {
|
37 |
+
//$requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . '/' . $disabledProductCheck, '/');
|
38 |
+
$requestUrl = rtrim(Mage::getUrl() . $notvisibleProductCheck, '/');
|
39 |
+
}
|
40 |
if ($disabledCategoryCheck) {
|
41 |
//$requestUrl = rtrim($request->getScheme() . '://' . $request->getHttpHost() . '/' . $disabledCategoryCheck, '/');
|
42 |
$requestUrl = rtrim(Mage::getUrl() . $disabledCategoryCheck, '/');
|
43 |
}
|
44 |
+
if (($actionName == 'noRoute') OR $disabledProductCheck OR $notvisibleProductCheck OR $disabledCategoryCheck) {
|
|
|
45 |
Mage::dispatchEvent('optimiseweb_redirects_before_legacy', array('request_url' => &$requestUrl));
|
46 |
$this->doRedirectsLegacy($requestUrl);
|
47 |
Mage::dispatchEvent('optimiseweb_redirects_before_v1', array('request_url' => &$requestUrl));
|
71 |
return FALSE;
|
72 |
}
|
73 |
|
74 |
+
protected function notvisibleProductCheck($request)
|
75 |
+
{
|
76 |
+
if ($request->getActionName() !== 'noRoute') {
|
77 |
+
if ((bool) Mage::getStoreConfig('optimisewebredirects/notvisible_products/enabled')) {
|
78 |
+
if (($request->getModuleName() == 'catalog') AND ( $request->getControllerName() == 'product') AND ( $request->getActionName() == 'view')) {
|
79 |
+
if ($product = Mage::getModel('catalog/product')->load(Mage::app()->getRequest()->getParam('id'))) {
|
80 |
+
if ($product->getVisibility() == 1) {
|
81 |
+
return $product->getUrlPath();
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
85 |
+
}
|
86 |
+
}
|
87 |
+
return FALSE;
|
88 |
+
}
|
89 |
+
|
90 |
protected function disabledCategoryCheck($request)
|
91 |
{
|
92 |
if ($request->getActionName() !== 'noRoute') {
|
app/code/community/Optimiseweb/Redirects/etc/config.xml
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
|
12 |
<modules>
|
13 |
<Optimiseweb_Redirects>
|
14 |
-
<version>0.3.
|
15 |
</Optimiseweb_Redirects>
|
16 |
</modules>
|
17 |
|
@@ -83,6 +83,12 @@
|
|
83 |
<disabled_products>
|
84 |
<enabled>0</enabled>
|
85 |
</disabled_products>
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
<redirects1>
|
87 |
<delimiter>,</delimiter>
|
88 |
<wildcardcharacter>*</wildcardcharacter>
|
11 |
|
12 |
<modules>
|
13 |
<Optimiseweb_Redirects>
|
14 |
+
<version>0.3.5</version>
|
15 |
</Optimiseweb_Redirects>
|
16 |
</modules>
|
17 |
|
83 |
<disabled_products>
|
84 |
<enabled>0</enabled>
|
85 |
</disabled_products>
|
86 |
+
<notvisible_products>
|
87 |
+
<enabled>0</enabled>
|
88 |
+
</notvisible_products>
|
89 |
+
<disabled_categories>
|
90 |
+
<enabled>0</enabled>
|
91 |
+
</disabled_categories>
|
92 |
<redirects1>
|
93 |
<delimiter>,</delimiter>
|
94 |
<wildcardcharacter>*</wildcardcharacter>
|
app/code/community/Optimiseweb/Redirects/etc/system.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<!--
|
3 |
/**
|
4 |
* @package Optimiseweb_Redirects
|
5 |
-
* @author Kathir Vel (
|
6 |
* @copyright Copyright (c) 2015 Kathir Vel
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
@@ -29,7 +29,7 @@
|
|
29 |
<show_in_store>1</show_in_store>
|
30 |
<groups>
|
31 |
|
32 |
-
<hint>
|
33 |
<frontend_model>ow_redirects/adminhtml_system_config_fieldset_hint</frontend_model>
|
34 |
<sort_order>0</sort_order>
|
35 |
<show_in_default>1</show_in_default>
|
@@ -49,8 +49,7 @@
|
|
49 |
<label>Redirect disabled products?</label>
|
50 |
<tooltip>
|
51 |
<![CDATA[
|
52 |
-
<p>With this option set to 'Yes', you can prevent visitors of disabled products from going to a 404 page.</p>
|
53 |
-
<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>
|
54 |
]]>
|
55 |
</tooltip>
|
56 |
<frontend_type>select</frontend_type>
|
@@ -63,8 +62,8 @@
|
|
63 |
</fields>
|
64 |
</disabled_products>
|
65 |
|
66 |
-
<
|
67 |
-
<label>
|
68 |
<frontend_type>text</frontend_type>
|
69 |
<sort_order>2</sort_order>
|
70 |
<show_in_default>1</show_in_default>
|
@@ -72,11 +71,10 @@
|
|
72 |
<show_in_store>1</show_in_store>
|
73 |
<fields>
|
74 |
<enabled translate="label tooltip comment" module="ow_redirects">
|
75 |
-
<label>Redirect
|
76 |
<tooltip>
|
77 |
<![CDATA[
|
78 |
-
<p>With this option set to 'Yes', you can prevent visitors of
|
79 |
-
<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 category's status before every category page load. This could add a very tiny bit of additional processing before every category page load.</p>
|
80 |
]]>
|
81 |
</tooltip>
|
82 |
<frontend_type>select</frontend_type>
|
@@ -87,49 +85,32 @@
|
|
87 |
<show_in_store>1</show_in_store>
|
88 |
</enabled>
|
89 |
</fields>
|
90 |
-
</
|
91 |
|
92 |
-
<
|
93 |
-
<label>
|
94 |
-
<comment>
|
95 |
-
<![CDATA[
|
96 |
-
<div class="notice-msg" style="background-image: none!important; padding: 5px;">
|
97 |
-
<p>This option still works, but please consider using Redirects System v1.0 as it offers a better CSV format and supports redirect status codes.</p>
|
98 |
-
<p><strong>CSV Format (inside one single Excel cell):</strong></p>
|
99 |
-
<p>http://domain.com/old-path/;http://domain.com/new-path/</p>
|
100 |
-
<p style="margin-bottom: 0;">Please check the CSV file by opening it in a plain text editor. Formatting errors and additional carriage returns can cause the module to stop working.</p>
|
101 |
-
</div>
|
102 |
-
]]>
|
103 |
-
</comment>
|
104 |
<frontend_type>text</frontend_type>
|
105 |
<sort_order>3</sort_order>
|
106 |
<show_in_default>1</show_in_default>
|
107 |
<show_in_website>1</show_in_website>
|
108 |
<show_in_store>1</show_in_store>
|
109 |
<fields>
|
110 |
-
<
|
111 |
-
<label>
|
112 |
-
<
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
|
|
117 |
<sort_order>1</sort_order>
|
118 |
<show_in_default>1</show_in_default>
|
119 |
<show_in_website>1</show_in_website>
|
120 |
<show_in_store>1</show_in_store>
|
121 |
-
</
|
122 |
-
<download translate="label tooltip comment" module="ow_redirects">
|
123 |
-
<label>Download Redirects File</label>
|
124 |
-
<comment>Right click on this link and click on 'Save Link As...'</comment>
|
125 |
-
<frontend_model>ow_redirects/system_config_backend_download</frontend_model>
|
126 |
-
<sort_order>2</sort_order>
|
127 |
-
<show_in_default>1</show_in_default>
|
128 |
-
<show_in_website>1</show_in_website>
|
129 |
-
<show_in_store>1</show_in_store>
|
130 |
-
</download>
|
131 |
</fields>
|
132 |
-
</
|
133 |
|
134 |
<redirects1 translate="label comment" module="ow_redirects">
|
135 |
<label>Redirects System v1.0</label>
|
@@ -255,35 +236,6 @@
|
|
255 |
</fields>
|
256 |
</querystring>
|
257 |
|
258 |
-
<cataloguesearch translate="label comment" module="ow_redirects">
|
259 |
-
<label>Redirect to Catalogue Search - DEPRECATED - DO NOT USE THIS OPTION</label>
|
260 |
-
<frontend_type>text</frontend_type>
|
261 |
-
<sort_order>6</sort_order>
|
262 |
-
<show_in_default>1</show_in_default>
|
263 |
-
<show_in_website>1</show_in_website>
|
264 |
-
<show_in_store>1</show_in_store>
|
265 |
-
<fields>
|
266 |
-
<enabled translate="label tooltip comment" module="ow_redirects">
|
267 |
-
<label>Enable?</label>
|
268 |
-
<tooltip>
|
269 |
-
<![CDATA[
|
270 |
-
<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>
|
271 |
-
<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>
|
272 |
-
<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>
|
273 |
-
<p><strong><span style="color:#df280a;">If the above 'Redirect non-404 requests?' is set to 'Yes', it overrides this option.</span></strong></p>
|
274 |
-
<p style="margin-bottom: 0;"><strong><span style="color:#df280a;">This feature is not being developed anymore.</span></strong></p>
|
275 |
-
]]>
|
276 |
-
</tooltip>
|
277 |
-
<frontend_type>select</frontend_type>
|
278 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
279 |
-
<sort_order>1</sort_order>
|
280 |
-
<show_in_default>1</show_in_default>
|
281 |
-
<show_in_website>1</show_in_website>
|
282 |
-
<show_in_store>1</show_in_store>
|
283 |
-
</enabled>
|
284 |
-
</fields>
|
285 |
-
</cataloguesearch>
|
286 |
-
|
287 |
<menu translate="label comment" module="ow_redirects">
|
288 |
<label>Admin Menu Control</label>
|
289 |
<frontend_type>text</frontend_type>
|
@@ -325,6 +277,77 @@
|
|
325 |
</fields>
|
326 |
</menu>
|
327 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
</groups>
|
329 |
</optimisewebredirects>
|
330 |
</sections>
|
2 |
<!--
|
3 |
/**
|
4 |
* @package Optimiseweb_Redirects
|
5 |
+
* @author Kathir Vel (vkathirvel@gmail.com)
|
6 |
* @copyright Copyright (c) 2015 Kathir Vel
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
29 |
<show_in_store>1</show_in_store>
|
30 |
<groups>
|
31 |
|
32 |
+
<hint translate="label comment" module="ow_redirects">
|
33 |
<frontend_model>ow_redirects/adminhtml_system_config_fieldset_hint</frontend_model>
|
34 |
<sort_order>0</sort_order>
|
35 |
<show_in_default>1</show_in_default>
|
49 |
<label>Redirect disabled products?</label>
|
50 |
<tooltip>
|
51 |
<![CDATA[
|
52 |
+
<p style="margin-bottom: 0;">With this option set to 'Yes', you can prevent visitors of disabled products from going to a 404 page.</p>
|
|
|
53 |
]]>
|
54 |
</tooltip>
|
55 |
<frontend_type>select</frontend_type>
|
62 |
</fields>
|
63 |
</disabled_products>
|
64 |
|
65 |
+
<notvisible_products translate="label comment" module="ow_redirects">
|
66 |
+
<label>Not Visible Products Check</label>
|
67 |
<frontend_type>text</frontend_type>
|
68 |
<sort_order>2</sort_order>
|
69 |
<show_in_default>1</show_in_default>
|
71 |
<show_in_store>1</show_in_store>
|
72 |
<fields>
|
73 |
<enabled translate="label tooltip comment" module="ow_redirects">
|
74 |
+
<label>Redirect Not Visible products?</label>
|
75 |
<tooltip>
|
76 |
<![CDATA[
|
77 |
+
<p style="margin-bottom: 0;">With this option set to 'Yes', you can prevent visitors of not visible products from going to a 404 page.</p>
|
|
|
78 |
]]>
|
79 |
</tooltip>
|
80 |
<frontend_type>select</frontend_type>
|
85 |
<show_in_store>1</show_in_store>
|
86 |
</enabled>
|
87 |
</fields>
|
88 |
+
</notvisible_products>
|
89 |
|
90 |
+
<disabled_categories translate="label comment" module="ow_redirects">
|
91 |
+
<label>Disabled Categories Check</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
<frontend_type>text</frontend_type>
|
93 |
<sort_order>3</sort_order>
|
94 |
<show_in_default>1</show_in_default>
|
95 |
<show_in_website>1</show_in_website>
|
96 |
<show_in_store>1</show_in_store>
|
97 |
<fields>
|
98 |
+
<enabled translate="label tooltip comment" module="ow_redirects">
|
99 |
+
<label>Redirect disabled categories?</label>
|
100 |
+
<tooltip>
|
101 |
+
<![CDATA[
|
102 |
+
<p style="margin-bottom: 0;">With this option set to 'Yes', you can prevent visitors of disabled categories from going to a 404 page.</p>
|
103 |
+
]]>
|
104 |
+
</tooltip>
|
105 |
+
<frontend_type>select</frontend_type>
|
106 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
107 |
<sort_order>1</sort_order>
|
108 |
<show_in_default>1</show_in_default>
|
109 |
<show_in_website>1</show_in_website>
|
110 |
<show_in_store>1</show_in_store>
|
111 |
+
</enabled>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
</fields>
|
113 |
+
</disabled_categories>
|
114 |
|
115 |
<redirects1 translate="label comment" module="ow_redirects">
|
116 |
<label>Redirects System v1.0</label>
|
236 |
</fields>
|
237 |
</querystring>
|
238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
<menu translate="label comment" module="ow_redirects">
|
240 |
<label>Admin Menu Control</label>
|
241 |
<frontend_type>text</frontend_type>
|
277 |
</fields>
|
278 |
</menu>
|
279 |
|
280 |
+
<general translate="label comment" module="ow_redirects">
|
281 |
+
<label>Legacy - Deprecated - DO NOT USE THIS - Use Redirects System v1.0</label>
|
282 |
+
<comment>
|
283 |
+
<![CDATA[
|
284 |
+
<div class="notice-msg" style="background-image: none!important; padding: 5px;">
|
285 |
+
<p>This option still works, but please consider using Redirects System v1.0 as it offers a better CSV format and supports redirect status codes.</p>
|
286 |
+
<p><strong>CSV Format (inside one single Excel cell):</strong></p>
|
287 |
+
<p>http://domain.com/old-path/;http://domain.com/new-path/</p>
|
288 |
+
<p style="margin-bottom: 0;">Please check the CSV file by opening it in a plain text editor. Formatting errors and additional carriage returns can cause the module to stop working.</p>
|
289 |
+
</div>
|
290 |
+
]]>
|
291 |
+
</comment>
|
292 |
+
<frontend_type>text</frontend_type>
|
293 |
+
<sort_order>9999</sort_order>
|
294 |
+
<show_in_default>1</show_in_default>
|
295 |
+
<show_in_website>1</show_in_website>
|
296 |
+
<show_in_store>1</show_in_store>
|
297 |
+
<fields>
|
298 |
+
<upload translate="label tooltip comment" module="ow_redirects">
|
299 |
+
<label>Upload Redirects File</label>
|
300 |
+
<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>
|
301 |
+
<frontend_type>file</frontend_type>
|
302 |
+
<backend_model>adminhtml/system_config_backend_file</backend_model>
|
303 |
+
<upload_dir config="system/filesystem/media" scope_info="1">optimiseweb/redirects</upload_dir>
|
304 |
+
<base_url type="media" scope_info="1">optimiseweb/redirects</base_url>
|
305 |
+
<sort_order>1</sort_order>
|
306 |
+
<show_in_default>1</show_in_default>
|
307 |
+
<show_in_website>1</show_in_website>
|
308 |
+
<show_in_store>1</show_in_store>
|
309 |
+
</upload>
|
310 |
+
<download translate="label tooltip comment" module="ow_redirects">
|
311 |
+
<label>Download Redirects File</label>
|
312 |
+
<comment>Right click on this link and click on 'Save Link As...'</comment>
|
313 |
+
<frontend_model>ow_redirects/system_config_backend_download</frontend_model>
|
314 |
+
<sort_order>2</sort_order>
|
315 |
+
<show_in_default>1</show_in_default>
|
316 |
+
<show_in_website>1</show_in_website>
|
317 |
+
<show_in_store>1</show_in_store>
|
318 |
+
</download>
|
319 |
+
</fields>
|
320 |
+
</general>
|
321 |
+
|
322 |
+
<cataloguesearch translate="label comment" module="ow_redirects">
|
323 |
+
<label>Redirect to Catalogue Search - DEPRECATED - DO NOT USE THIS OPTION</label>
|
324 |
+
<frontend_type>text</frontend_type>
|
325 |
+
<sort_order>9998</sort_order>
|
326 |
+
<show_in_default>1</show_in_default>
|
327 |
+
<show_in_website>1</show_in_website>
|
328 |
+
<show_in_store>1</show_in_store>
|
329 |
+
<fields>
|
330 |
+
<enabled translate="label tooltip comment" module="ow_redirects">
|
331 |
+
<label>Enable?</label>
|
332 |
+
<tooltip>
|
333 |
+
<![CDATA[
|
334 |
+
<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>
|
335 |
+
<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>
|
336 |
+
<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>
|
337 |
+
<p><strong><span style="color:#df280a;">If the above 'Redirect non-404 requests?' is set to 'Yes', it overrides this option.</span></strong></p>
|
338 |
+
<p style="margin-bottom: 0;"><strong><span style="color:#df280a;">This feature is not being developed anymore.</span></strong></p>
|
339 |
+
]]>
|
340 |
+
</tooltip>
|
341 |
+
<frontend_type>select</frontend_type>
|
342 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
343 |
+
<sort_order>1</sort_order>
|
344 |
+
<show_in_default>1</show_in_default>
|
345 |
+
<show_in_website>1</show_in_website>
|
346 |
+
<show_in_store>1</show_in_store>
|
347 |
+
</enabled>
|
348 |
+
</fields>
|
349 |
+
</cataloguesearch>
|
350 |
+
|
351 |
</groups>
|
352 |
</optimisewebredirects>
|
353 |
</sections>
|
package.xml
CHANGED
@@ -1,18 +1,20 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Optimiseweb_Redirects</name>
|
4 |
-
<version>0.3.
|
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>*
|
|
|
|
|
12 |
<authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
|
13 |
-
<date>2015-
|
14 |
-
<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="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Optimiseweb_Redirects</name>
|
4 |
+
<version>0.3.5</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>* Added a check for not visible product URLs
|
12 |
+
* Removed module and Magento version reporting
|
13 |
+
* However, module and Magento version will be sent via query string to the support link</notes>
|
14 |
<authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
|
15 |
+
<date>2015-11-14</date>
|
16 |
+
<time>14:59:12</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="1462f7761e808c8483344b6677a5b75d"/></dir></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Download.php" hash="271ee03fca9ecce398eeb174bc3f1c32"/><file name="Download1.php" hash="da149ec109a496ebabc0444d5bf53232"/><file name="Downloadquerystringfile.php" hash="e458890aa9fba432f97ed4f38985a7da"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="69ad76fea40d7c3a73e24210b83c52ad"/></dir><dir name="Model"><file name="Redirector.php" hash="51d5b8b28cad13bcc77236d2f6dc2f30"/></dir><dir name="doc"><file name="Readme.html" hash="14bbc48e3864e316759b8dfde12c2d58"/></dir><dir name="etc"><file name="adminhtml.xml" hash="513115a18f7dc90511466fdb3ffc5ddc"/><file name="config.xml" hash="9e4813d751ac3f441fa4f181ed1a6bc6"/><file name="system.xml" hash="9f4f8b5192a34477697494cb3da564a6"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Optimiseweb_Redirects.xml" hash="fc570b2799c319db61907ac4794f99d5"/></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="79322c0ba284256e1696c40b6bf466ff"/></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>
|