I hereby claim:
- I am edwinsiebel on github.
- I am edwinsiebel (https://keybase.io/edwinsiebel) on keybase.
- I have a public key ASBuJcPjcYVbgGE2fy0WaQBjeefSvM5FlOZPSC7NlYZ3SAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # Redirect HTTP to HTTPS, for the main domain as well as all subdomains. | |
| # | |
| # Example: | |
| # http://domain.com/ => https://domain.com/ | |
| # http://subdomain.domain.com/ => https://subdomain.domain.com/ | |
| # | |
| # Make sure you replace "replacewithyourdomain" with your actual root domain! | |
| # | |
| # @author: Alain Schlesser <alain.schlesser@gmail.com> |
Dit is een list met truuks om wordpress snel(ler) en veilig(er) te maken.
Alle tips zijn welkom :)
Wat iig een fijn aanknopingspunt is, is PageSpeed & YSlow. Zij maken gebruik van de best practises van yahoo en google en hebben een aantal goede tips die nog flink wat snelheid op kunnen leveren. http://gtmetrix.com
| //Just a random file for loading your posts to see that the infinite scroll works. | |
| <?php get_header(); ?> | |
| <div class="col-md-6 col-md-offset-3"> | |
| <div class="post-container"> | |
| <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
| <div class="page-header post"> | |
| <h1><?php the_title(); ?></h1> | |
| <p><?php the_excerpt(); ?></p> | |
| </div> |
| image: phpunit/phpunit:4.6.10 | |
| pipelines: | |
| default: | |
| - step: | |
| script: | |
| - pecl install xdebug && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini | |
| - composer --version | |
| - composer install | |
| - vendor/bin/phpunit --version |
| <?php | |
| //Deletes all CSS classes and id's, except for those listed in the array below | |
| function custom_wp_nav_menu($var) { | |
| return is_array($var) ? array_intersect($var, array( | |
| //List of allowed menu classes | |
| 'current_page_item', | |
| 'current_page_parent', | |
| 'current_page_ancestor', | |
| 'first', | |
| 'last', |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} ^old-subdomain.domain.nl$ [OR] | |
| RewriteRule (.*)$ https://new-subdomain.domain.nl/$1 [R=301,L] | |
| </IfModule> |
| <?php | |
| namespace GM\VirtualPages; | |
| /** | |
| * @author Giuseppe Mazzapica <giuseppe.mazzapica@gmail.com> | |
| * @license http://opensource.org/licenses/MIT MIT | |
| */ | |
| class Controller implements ControllerInterface { | |
| private $pages; |
| <?php | |
| require 'recipe/common.php'; | |
| // Set configurations | |
| set('repository', 'ssh://gogs@git.server.com:22/user/repo.git'); | |
| set('shared_files', ['public/wp-config.php']); | |
| set('shared_dirs', ['public/wp-content/uploads']); | |
| set('writable_dirs', []); | |
| set('keep_releases', 10); | |
| set('composer_command', 'composer'); |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |