- Remove obsolete content, e.g. Hello World
- Remove obsolete plugins, e.g. Hello Dolly
- Replace all placeholder texts, e.g. Lorem Ipsum
- Replace all placeholder images, e.g. placeholder.png
- Find and remove all broken links, e.g. with Broken Link Checker
- Create 404 page
- Create contact page
- Create legal pages, e.g. Terms and conditions and Privacy Policy
This file contains 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
# "Performance Scalability of a Multi-Core Web Server", Nov 2007 | |
# Bryan Veal and Annie Foong, Intel Corporation, Page 4/10 | |
fs.file-max = 5000000 | |
net.core.netdev_max_backlog = 4096 | |
net.core.optmem_max = 10000000 | |
net.core.rmem_default = 10000000 | |
net.core.rmem_max = 10000000 | |
net.core.somaxconn = 4096 | |
net.core.wmem_default = 10000000 | |
net.core.wmem_max = 10000000 |
This file contains 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
upstream domain_com { | |
server unix:/var/run/muay-domain.com-php-fpm.socket; | |
} | |
server { | |
listen *:80; | |
server_name domain.com www.domain.com; | |
include /etc/nginx/snippets/letsencrypt-acme-challenge.conf; | |
location / { |
This file contains 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
<?php | |
/** | |
* Remove [All in One SEO Pack] HTML Comments | |
* @link //gist.github.com/llgruff/a7ab776167aa0ed307ec445df54e5fdb | |
*/ | |
if (defined('AIOSEOP_VERSION')) { | |
add_action('get_header', function() { | |
ob_start( | |
function($o) { | |
return preg_replace('/\n?<.*?One SEO Pack.*?>/mi','',$o); |
This file contains 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
<?php | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
/*----------------------------------------------------------------------------------- | |
Title: Child theme functions.php | |
Description: Functies/Action/filter/hooks used for Wordpress childtheme | |
Author: Auke Jongbloed | |
Author Uri: www.wordpressassist.nl | |
Version: 1.4.0 | |
Tags: Wordpress, wordpressassist, functions.php |
This file contains 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
################# SEO Aanpassingen ########################################### | |
# https://gist.github.com/Auke1810/9939b52131bdb2af819143798aba60f2 | |
############################################################################## | |
/** | |
* add_noindex_tags | |
* meta robots tag vullen met de juiste instelling per pagina type | |
* Gepagineerde pagina’s (zonder parameters) moeten index, follow zijn. | |
* Gepagineerde pagina’s met parameters mogen een noindex, nofollow | |
*/ |
This file contains 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
<?php | |
/** | |
* Add rel=nofollow to wp_list_categories | |
* @link http://www.billerickson.net/adding-nofollow-to-category-links/ | |
* @author Bill Erickson | |
*/ | |
function add_nofollow( $text ) { | |
$text = stripslashes($text); | |
$text = preg_replace_callback('|<a (.+?)>|i', 'wp_rel_nofollow_callback', $text); |
This file contains 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
################# performance snippets ########################################### | |
/** | |
* decrease jpeg quality to 80 | |
*/ | |
add_filter( 'jpeg_quality', create_function( '', 'return 80;' ) ); | |
/** | |
* Disable the emoji's | |
*/ |
This file contains 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
<?php | |
/** | |
* Enqueue 404 Script | |
* | |
*/ | |
function be_404_script() { | |
if( is_404() ) | |
wp_enqueue_script( 'be-404', get_stylesheet_directory_uri() . '/js/404.js', array( 'jquery' ), '1.0', true ); | |
} |