Best collection of code for your .htaccess file [closed]

These are 3 snippet for better performance, regarding Yahoo! rules: Disable Etags: Header unset ETag FileETag None Add expire headers: <FilesMatch “\.(ico|jpg|jpeg|png|gif|js|css|swf)$”> Header set Expires “Tue, 16 Jun 2020 20:00:00 GMT” </FilesMatch> Or ExpiresActive On ExpiresByType text/html “access plus 1 day” ExpiresByType image/gif “access plus 10 years” ExpiresByType image/jpeg “access plus 10 years” ExpiresByType image/png … Read more

How to change the default registration email ? (plugin and/or non-plugin)

The new user email is sent using the wp_new_user_notification() function. This function is pluggable, which means that you can overwrite it: // Redefine user notification function if ( !function_exists(‘wp_new_user_notification’) ) { function wp_new_user_notification( $user_id, $plaintext_pass=”” ) { $user = new WP_User($user_id); $user_login = stripslashes($user->user_login); $user_email = stripslashes($user->user_email); $message = sprintf(__(‘New user registration on your blog … Read more

Is there a flowchart for WordPress loading sequence?

There is this rather in-depth explanation found at, Part 1 http://theme.fm/2011/09/wordpress-internals-how-wordpress-boots-up-2315/ Part 2 http://theme.fm/2011/09/wordpress-internals-how-wordpress-boots-up-part-2-2437/ Which also includes some diagrams/flowcharts. and… This is also just the start of understanding the WordPress initialization process to which also should include information about the template hierarchy, as well as inspecting which hooks are fired on which pages and when. … Read more

Hide the fact a site is using WordPress?

The biggest WordPress giveaways are between the <head> </head> tags. Example WordPress head content output by The Twentyten Theme and how to remove: <link rel=”profile” href=”http://gmpg.org/xfn/11″ /> Remove directly from header.php <link rel=”stylesheet” type=”text/css” media=”all” href=”http://example.com/wp-content/themes/twentyten/style.css” /> Hide WordPress by calling your stylesheet from another location and change the wp-content directory. WordPress requires your theme … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)