How To Restrict Access To Media Uploads Using .htaccess

How To Auto-Redirect When WordPress Search Only Returns One Post

This is something that I’m currently using on this website, and a snippet which I really like. Here’s a snippet which will automatically redirect your users when the search only returns one post in your WordPress.

Just add the following snippet to your current theme’s functions.php file: