- 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 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
<?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 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
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 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
# "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 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
server { | |
###################################################################### | |
## The Master .htaccess - NginX adaptation | |
## | |
## Version 3.3 | |
## | |
## This file is designed to be the template NginX server configuration file | |
## for your Joomla! sites. You should go through all of its sections and | |
## modify it to match your site. Most notably, all instances of example.com | |
## and example\.com should be replaced with your real domain name. |
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
body.wpex-noscroll { | |
position: static !important; | |
width: auto !important; | |
overflow-y: inherit !important; | |
top: auto !important; | |
bottom: auto !important; | |
} |
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
<?php | |
function wp_customize_admin_menu() { | |
remove_menu_page( 'edit.php' ); | |
remove_menu_page( 'edit-comments.php' ); | |
remove_submenu_page( 'themes.php', 'theme-editor.php' ); | |
remove_submenu_page( 'plugins.php', 'plugin-editor.php' ); | |
remove_submenu_page( 'tools.php', 'tools.php' ); | |
remove_submenu_page( 'tools.php', 'import.php' ); | |
remove_submenu_page( 'options-general.php', 'options-discussion.php' ); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<!-- we use 'preload_' instead of 'preload' to make it testable in chrome --> | |
<link rel="preload_" onload="console.log(this, 'script');" href="http://code.jquery.com/jquery-1.12.1.js" as="script" /> | |
<link rel="preload_" onload="console.log(this, 'style');" href="https://cdn.jsdelivr.net/bootstrap/3.3.6/css/bootstrap.min.css" as="style" /> | |
<link rel="preload_" onload="console.log(this, 'font');" href="LatoLatin-Regular.woff" as="font" type="font/woff" crossorigin="" /> |
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
// Add to your Wordpress Theme's functions.php | |
// Remove All Yoast HTML Comments | |
// https://gist.github.com/paulcollett/4c81c4f6eb85334ba076 | |
add_action('wp_head',function() { ob_start(function($o) { | |
return preg_replace('/^\n?<!--.*?[Y]oast.*?-->\n?$/mi','',$o); | |
}); },~PHP_INT_MAX); |