Title: Resources efficiency using redirects
Last modified: October 31, 2023

---

# Resources efficiency using redirects

 *  Resolved [djwilko12](https://wordpress.org/support/users/djwilko12/)
 * (@djwilko12)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/resources-efficiency-using-redirects/)
 * Hi!
 * the plugin’s description saya it could handle redirects using either WordPress
   or htaccess.
 * what is the best method for making this process in the most efficient way in 
   terms of server/site resources? What would you suggest ?
 * on the other hand , it also keeps logs of 404. Is there a way to auto purge old
   data to avoid storing huge amount of information ?
 * Thanks !

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/resources-efficiency-using-redirects/#post-17164099)
 * I would always advise using WordPress redirects unless you have a specific reason
   otherwise.
 * Sure, you set an expiry time when enabling 404 logging.
 *  Thread Starter [djwilko12](https://wordpress.org/support/users/djwilko12/)
 * (@djwilko12)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/resources-efficiency-using-redirects/#post-17164410)
 * Thank you very much, John, for your prompt reply!
 * 1- You mentioned that it’s better to use a WordPress redirect. After consulting
   with you, I did some Googling and found that many people recommend handling it
   at the server level using .htaccess. They suggest it’s faster because it operates
   even before WordPress loads. Would you agree?
 * I also discovered that it can consume fewer resources, as loading WordPress is
   bypassed. This can save server resources since there’s no need to initiate the
   entire WordPress process.
 * Given your experience, I’d like to know if there are any advantages to using 
   WordPress for this purpose instead?
 * 2- I’m pleased to hear about the expiration setting. If I set it to store 404
   logs for one week, will the plugin automatically remove all that data from the
   database on the 8th day?
 * Thanks!
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/resources-efficiency-using-redirects/#post-17164445)
 * As with most things to do with performance there are caveats. What works in one
   situation may not work in another.
 * Yes, a server redirect will skip a request to WordPress. This may be appropriate
   for a small number of heavily used pages, but if you have 200k redirects then
   your server is having to do a lot of extra work on every single request, not 
   just WordPress ones. A server redirect still has a resource cost, and at this
   point WordPress redirects could likely be more performant.
 * WordPress redirects are simpler to create, manage, and use, give you statistics
   and logging and all the other features of the plugin. You are also much less 
   likely to break your site. In most cases the performance difference is negligible,
   and mostly irrelevant, and the advantages you gain outweigh this. Caching can
   be used (both page and object) to improve the performance further.
 * If your server has resource problems loading WordPress then you will find your
   time better spent focussing on that, or changing server, than worrying about 
   redirects. For the vast majority of sites (even those with heavy usage) the simplicity
   of WordPress redirects is still my recommended way to go.
 *  Thread Starter [djwilko12](https://wordpress.org/support/users/djwilko12/)
 * (@djwilko12)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/resources-efficiency-using-redirects/#post-17164561)
 * Thank you very much!
 * And what about:
 *  2- I’m pleased to hear about the expiration setting. If I set it to store 404
   logs for one week, will the plugin automatically remove all that data from the
   database on the 8th day?
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/resources-efficiency-using-redirects/#post-17164710)
 * Yes, the expiry time will set when things are removed.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Resources efficiency using redirects’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/resources-efficiency-using-redirects/#post-17164710)
 * Status: resolved