• Resolved vnpotato

    (@vnpotato)


    Hello,

    Is there a way to set a rule using this plugin to redirect all 404 to one URL? let’s say homepage? if so can someone help how to set?

    the reason is so that specific page will get cached (unlike now when 404 pages are not cached)

    Thanks for the help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Godley

    (@johnny5)

    See https://redirection.me/support/faq/#all-404

    Why don’t 404 pages get cached? I would look into that rather than redirecting 404s and causing other problems.

    Thread Starter vnpotato

    (@vnpotato)

    thanks for the reply.
    THe things is that there was an attack from plenty of IPs that changed URL.

    so for example, they triggered URLs they new will lead to 404, like:

    domain.com/url12132
    domain.com/url1133
    domain.com/url2244
    and so forth.

    this means that each page of the above has a unique URL and cached when visited the first time, this mass request of uncached pages caused a huge server load.

    that’s why I came into that solution to have just one 404 page.
    Is it more clear now?
    if so, can you tell me what did you mean by that you said 404 redirect will cause other problems?

    thanks

    Plugin Author John Godley

    (@johnny5)

    A redirect won’t help your caching situation. An uncached request will still be made to the original URL, and a similar amount of resources will be used.

    If uncached requests are causing server problems then it may be worth looking at why that is happening. If your site is suffering a denial of service attack then mitigation will need to happen elsewhere – redirects and caches are not the solution.

    Redirecting all 404s can cause issues for search engines and isn’t a good user experience.

    As it won’t help with your server load, and can make things worse for real 404s, it doesn’t seem a good route to take.

    Thread Starter vnpotato

    (@vnpotato)

    I get what you’re saying. Many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘redirecting all 404 to one URL’ is closed to new replies.