Website speed is one of the first things someone notices when visiting your website. We have articles covering many ways to improve WordPress performance:
- Caching plugins like WP Super Cache and W3TC
- Cloudflare content delivery network (CDN)
- Site Health website scanner
- External performance scanners like GtMetrix.com
- Our Nginx-powered WordPress Hosting
- Our VPS Hosting with PHP-FPM
Another way to reduce the use of server resources and improve server performance is to use cookie-free domains. A cookieless subdomain separates website content that doesn’t change – e.g. media and CSS files – from sending unnecessary cookies to the server.
We recommend you create a cPanel backup before continuing. Then we’ll create a cookieless domain for WordPress.
- Log into cPanel.
- Create a subdomain – e.g. cdn, images, or static – with your wp-content directory as the document root.
Warning: You may need to use a different fully qualified domain name if your WordPress website has cookies valid across the entire second-level domain.
- Edit your wp-config.php file.
- Add the following to the bottom of the wp-config.php file:
You would replace domain.com with your domain name
After improving your WordPress performance, learn more about improving WordPress security.