-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic rewrite rules #162
Comments
Rewrites will use this syntax:
Courtesy: Igor Sysoev - http://forum.nginx.org/read.php?2,248659,248661#msg-248661 |
Rahul - this is an incredible idea! |
Awesome idea! 👍 |
Over the time I realized this is not worth the efforts. The performance saving is minimal since Nginx page cache can store 301/302 responses too. So only first hit will reach PHP. Having its done via Nginx requires all involved people to ping to Sys team. So we ourself started using https://wordpress.org/plugins/safe-redirect-manager/ . This is a nice plugin 10up and we recommended by redirect handling. |
For WordPress sites, as site grows old it is cluttered with 301/302 redirects.
Some plugins add these redirects. Some are handled by WordPress core (e.g. slug changes). But in both cases, a request reaches PHP.
Idea is to monitor access.log, say daily for a site, find 301/302 and create rewrite rules for that sites so redirects will be much faster and php/mysql will be saved from some work.
The text was updated successfully, but these errors were encountered: