This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* EVE Milano sw.js | |
* Copyright 2017 Giovanni Sacheli All rights reserved. | |
* Version 1.2 (20 settembre 2017) | |
*/ | |
self.addEventListener('install', e => { | |
console.log('PWA Service Worker installing.'); | |
let timeStamp = Date.now(); | |
e.waitUntil( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"short_name": "EVE Milano", | |
"name": "EVE Milano Consulenza SEO", | |
"icons": [ | |
{ | |
"src": "/wp-content/uploads/apple-icons/apple-touch-icon-48x48.png", | |
"type": "image/png", | |
"sizes": "48x48" | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="https://www.evemilano.com/servizi-seo/">Servizi SEO</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="/servizi-seo/">Servizi SEO</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_defer_attribute($tag, $handle) { | |
// add script handles to the array below | |
$scripts_to_defer = array('jquery-migrate', 'hoverIntent', 'superfish', 'superfish-args', 'skip-links', 'wp-embed'); | |
foreach($scripts_to_defer as $defer_script) { | |
if ($defer_script === $handle) { | |
return str_replace(' src', ' defer="defer" src', $tag); | |
} | |
} | |
return $tag; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_async_attribute($tag, $handle) { | |
if ( 'my-js-handle' !== $handle ) | |
return $tag; | |
return str_replace( ' src', ' async="async" src', $tag ); | |
} | |
add_filter('script_loader_tag', 'add_async_attribute', 10, 2); | |
//* If you want to use defer just replace async="async" with defer="defer". | |
//* You will need to change the handle which will be the first parameter of the enqueue method. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Esempio 1 | |
RewriteCond %{HTTP_HOST} ^m\.esempio\.com$ | |
RewriteRule ^\*$ http://www.esempio.com/*? [L,R=301] | |
# Esempio 2 | |
RewriteCond %{HTTP_HOST} ^m\.esempio\.com$ [NC] | |
RewriteCond %{QUERY_STRING} ^$ | |
RewriteRule ^\*$ http://www.esempio.com/*? [R=301,NE,NC,L] | |
# Esempio 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# KeepAlive: Whether or not to allow persistent connections (more than | |
# one request per connection). Set to "Off" to deactivate. | |
# | |
KeepAlive On | |
# | |
# MaxKeepAliveRequests: The maximum number of requests to allow | |
# during a persistent connection. Set to 0 to allow an unlimited amount. | |
# We recommend you leave this number high, for maximum performance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ifModule mod_headers.c> Header set Connection keep-alive </ifModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-agent: * | |
Disallow: /admin/ | |
Disallow: *price=* | |
Disallow: *dir=* | |
Disallow: *order=* | |
Disallow: *limit=* | |
Disallow: */catalog/* | |
Disallow: */catalogsearch/* | |
Disallow: */customer/* |