wordpress snippets last updated   : October 6, 2014
we now have 641 snippets

htaccess for a better wordpress login URL

wordpress snippet

Adding this rewrite rule to your .htaccess file in the root directory of your wordpress install will change your login url from www.wpsnipp.com/wp-login.php to www.wpsnipp.com/login/ This is also a great snippet to simplify things for your clients. I have found many continue to forget the /wp-login.php url of the wordpress login screen.

read more

Redirect empty searches to root

wordpress snippet

Adding this snippet to your .htaccess file, will redirect empty searches to root. Be sure to backup your htaccess first.

read more

Protect wp-config with .HTACCESS

wordpress snippet

Adding this to your .HTACCESS will prevent access to your wp-config.php file.

read more

Deny spambots from comments

wordpress snippet

Adding this to your HTACCESS will help keep bots from posting comments on your wordpress blog, be sure to change yourdomain.com to your website address.

read more

Admin IP whitelist

wordpress snippet

Adding this snippet to your htaccess file will whitelist a set of IP addresses that you wish to have access to your admin panel. Replace the xx.xx.xx.xxx with the IP address you wish to whitelist. Be careful with this you don’t want to block yourself from the admin panel,

read more

Block common exploit

wordpress snippet

Adding this code to your .HTACCESS will block common exploits.

read more
jqsnipp.com | we just launched jquery snippets website