Category: Webservers

Discourage HTTPS On WordPress

Recently we had a WordPress site where that used HTTPS (SSL) on the login/admin areas. But we wanted to discourage HTTPS for non-admin URL. Here are the rewrite rules that ended up using in a .htaccess file:

Read More »

Block PHP Execution With .htaccess In Folder

For a server using Plesk add the following lines to a .htaccess file to stop execution of PHP scripts in the folder:

I like to use this to protect cache and image upload folders that are writable by the

Read More »

Redirect Old URLS In .htaccess

Frequently when our clients upgrade their website, they will need URLs from the old site mapped to the new site. So for example maybe they had this URL on the old server: http://acme.com/widgets/egonomic-widget-design Maybe there are many sites on the

Read More »

Install SSL Certificate – Apache / CentOS / RHEL

For this example we’ll install an SSL certificate for acme.com. The certificate authority is Network Solutions. The procedure may be different for other certificate authorities especially in how intermediate certificates are setup. Install mod_ssl if needed

Copy SSL certificate

Read More »

Rewrite Rule To Block User Agent

Recently we’ve seen servers being overloaded by the 80legs.com web crawler. Here’s a quick rewrite rule that can be placed in .htaccess to block 80legs:

Here’s a rule to block by user agent with Nginx:

Read More »

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.