Skip to content

Instantly share code, notes, and snippets.

Avatar

Ramon Kaes ratoli

  • naal&kaes
  • Germany
View GitHub Profile
@mikejolley
mikejolley / functions.php
Created Jul 2, 2016
WooCommerce - Redirect external products offsite (disable single listings)
View functions.php
<?php // Do not include this if already open!
/**
* Code goes in theme functions.php.
*/
add_action( 'template_redirect', 'redirect_external_products' );
function redirect_external_products() {
global $post;
@seoagentur-hamburg
seoagentur-hamburg / .htaccess
Last active Oct 2, 2021
Die optimale .htaccess-Datei für mehr Speed und Sicherheit
View .htaccess
# ----------------------------------------------------------------------
# | Komprimierung und Caching |
# ----------------------------------------------------------------------
# Serve resources with far-future expires headers.
#
# (!) If you don't control versioning with filename-based
# cache busting, you should consider lowering the cache times
# to something like one week.
#