Skip to content

Instantly share code, notes, and snippets.

@szepeviktor
Last active January 21, 2026 14:39
Show Gist options
  • Select an option

  • Save szepeviktor/76d0999f2283a34ea102b260cefb11b6 to your computer and use it in GitHub Desktop.

Select an option

Save szepeviktor/76d0999f2283a34ea102b260cefb11b6 to your computer and use it in GitHub Desktop.
Make a slow WordPress site fast!

WordPress Performance

Debugging theory: https://github.com/szepeviktor/debug-wordpress

@szepeviktor
Copy link
Author

Canonical redirect

# BEGIN Canonical redirect
RewriteEngine On
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{HTTP_HOST} !=example.com
RewriteRule ^ https://example.com%{REQUEST_URI} [L,R=301]
# END Canonical redirect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment