Sometimes you may need to filter logs by time range or date range. Here is how to filter logs between date range in Linux.
Apache
How to Fix Mixed Content/Insecure Content Issue in Apache/PHP
Browsers don’t load mixed content and issue security warning. Here is how to fix mixed content/insecure content issue in Apache/PHP.
How to Force HTTPS in .htaccess in Apache
Sometimes you may need to automatically redirect HTTP to HTTPS URLs on your website. Here is how to enforce HTTPS in .htaccess in Apache.
How to Set Content-Disposition Header to Attachment in Apache
Sometimes you may need to enable downloads on your website. Here is how to set content-disposition header to attachment in Apache server.
How to Force Download in Apache
Sometimes you may need to force users to download files instead of opening them in browser. Here is how to force download in Apache server.
How to Create Wildcard Subdomain VirtualHost in Apache Server
Sometimes you may need to create virtual host for wildcard subdomain. Here are the steps to create wildcard subdomain in Apache server.
How to Block Referrer Spam with .htaccess
Sometimes you may need to block visitors by referrer values. Here is how to block referrer spam with .htaccess in Apache server.
How to Redirect with Query String in Apache
How to Check if Cookie is Set in Apache Server
Sometimes you may need to check if a cookie set in user request and take actions based on cookie value. Here is how to check if cookie is set in Apache server.
How to Redirect in Apache based on Cookie
Sometimes you may need to redirect requests based on cookie values in Apache web server. Here are the steps to do it.