Giter VIP home page Giter VIP logo

Comments (7)

tlovett1 avatar tlovett1 commented on June 5, 2024

Only thing tricky about this is that we are doing redirects on parse_request where at the time 404 flags have not been set. Can we move redirection to a different action?

from safe-redirect-manager.

danielbachhuber avatar danielbachhuber commented on June 5, 2024

Only thing tricky about this is that we are doing redirects on parse_request where at the time 404 flags have not been set.

I was thinking it could be an opt-in behavior because...

Can we move redirection to a different action?

Moving redirection to a different action by default will cause more of WordPress to load (and decrease performance).

from safe-redirect-manager.

tlovett1 avatar tlovett1 commented on June 5, 2024

I don't understand what you mean by opt-in behavior. We are doing redirects before WP checks if a 404 occurs.

from safe-redirect-manager.

danielbachhuber avatar danielbachhuber commented on June 5, 2024

Right, so opt in to waiting until after the 404 occurs.

On Oct 31, 2013, at 17:52, Taylor Lovett [email protected] wrote:

I don't understand what you mean by opt-in behavior. We are doing redirects before WP checks if a 404 occurs.


Reply to this email directly or view it on GitHub.

from safe-redirect-manager.

tlovett1 avatar tlovett1 commented on June 5, 2024

I see. I wish we could find a better way to handle this rather than moving the redirect to a new action. I'd merge a pull request though.

from safe-redirect-manager.

pdclark avatar pdclark commented on June 5, 2024

Two PR's, one setting 404 option as the filter, the other setting it as default.

Personally, I'd like to see this behavior as default. It'd remove redirect processing from occurring on every page load, causing a slight performance increase site-wide. The additional processing of getting to template_redirect for a redirect should be negligible from a user's perspective.

from safe-redirect-manager.

pdclark avatar pdclark commented on June 5, 2024

Just occurred to me after all that... A better approach may be to switch redirect detection to use rewrite rules. See #24.

from safe-redirect-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.