Ultimate High Speed .htaccess Configuration for Busy Websites

htaccess is the main entry point for any WordPress website. When you enter an url to a WordPress website, url request is sent to the server and it is then handled by WordPress using rewrite rules defined in the htacess file. Often, htaccess file is managed by WordPress core and caching plugins like Litespeed or […]

Read more Ultimate High Speed .htaccess Configuration for Busy Websites

Htaccess Custom 404 Error Document

[How To] htaccess Use Custom Error Document in the Current Folder

Apache only allows the ErrorDocument directive using the document root directory. If you don’t want to hard code full path of your error document in the htaccess file, but still need to use your own directory, you can use the following rewrite hack to redirect all errors to your static HTML file. # Use Custom […]

Read more [How To] htaccess Use Custom Error Document in the Current Folder

Performance Tip Skip Wordpress 404 Htaccess

[How to] Skip WordPress 404 Handling for Static Files

WordPress uses .htaccess file to handle all requests through the index.php file. This is a great feature because it enables us to use permalinks and all kinds of redirections. But it has one major pitfall. When a missing static file (404 error) is handled by WordPress (like a missing favicon.ico) this will cause your server to […]

Read more [How to] Skip WordPress 404 Handling for Static Files

[How to] Increase PHP Memory Limit for WordPress

If you get memory exhausted fatal errors on your WordPress blog, maybe its time to increase memory limit for PHP. In this post, you will find various ways to increase memory limit for WordPress using PHP and htaccess files. When PHP scripts get complex they require more memory than regular PHP files. When PHP is […]

Read more [How to] Increase PHP Memory Limit for WordPress

Master Level “.htaccess” File Tricks for WordPress

.htaccess is a file used by Apache server, to over-write general rules for certain folders. Previously, we shared how to speed up your website using .htaccess file. With this post, we see there is more, awesome ways to manage your server rules and limits. Default WordPress .htaccess file # BEGIN WordPress RewriteEngine On RewriteBase / […]

Read more Master Level “.htaccess” File Tricks for WordPress