Skip to content

Instantly share code, notes, and snippets.

Trung Hieu Bui Kaiderella

View GitHub Profile
Kaiderella / .htaccess
Last active Oct 20, 2019
Tự động redirect tên miền cũ về tên miền mới
View .htaccess
#Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$$1 [R=301,L]
Kaiderella / robots.txt
Last active Sep 22, 2018
Tập tin robots.txt dành cho WordPress
View robots.txt
User-agent: *
Disallow: /wp-admin/
Disallow: /readme.html
Disallow: /license.txt
Disallow: /?s=*
Allow: /wp-admin/admin-ajax.php
Allow: /wp-admin/images/*
Kaiderella / wp-config.php
Last active May 10, 2018
Debug cho WordPress
View wp-config.php
// Enable WP_DEBUG mode
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
Kaiderella / functions.php
Created May 22, 2017
Vô hiệu hóa Heartbeat
View functions.php
add_action( 'init', 'stop_heartbeat', 1 );
function stop_heartbeat() {
Kaiderella / .htaccess
Last active May 18, 2017
File .htaccess cho wp-content và uploads
View .htaccess
<Files *.php>
deny from all
Options All -Indexes
Kaiderella / .htaccess
Last active May 18, 2017
File .htaccess cho wp-includes
View .htaccess
<Files *.php>
deny from all
<Files wp-tinymce.php>
allow from all
<Files ms-files.php>
allow from all
Options All -Indexes
Kaiderella / resulting-email
Created May 11, 2017
0 day resulting email
View resulting-email
------[ resulting e-mail ]-----
Subject: [CompanyX WP] Password Reset
Return-Path: <>
From: WordPress <>
Message-ID: <>
X-Priority: 3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
View http-request
-----[ HTTP Request ]----
POST /wp/wordpress/wp-login.php?action=lostpassword HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 56
Kaiderella / font-awesome-i-class
Created Apr 14, 2017
Chèn Font Awesome với thẻ i
View font-awesome-i-class
<i class="fa fa-home" aria-hidden="true"></i>
Kaiderella / font-awesome-span-class
Created Apr 14, 2017
Chèn Font Awesome với thẻ span
View font-awesome-span-class
<span class="fa fa-home"></span>
You can’t perform that action at this time.