• Hey Frank, good morning 🙂

    So as you know from my previous post we fix the handler.
    I figure out, Nginx can do for you everything, you only need to activate the handler via Autoptimize. (-Nginx smart bro :)-)

    Now.
    another issue is the other error pages.
    server get in normal day 404 from other companies destroy your rank.
    bad backlinks in URL to destroy SEO.
    example: locksmithunit.com/we-sell-showes/
    bad crawlers.
    advertise companies.
    and more stuff like that…

    FRANK IS A WAR :-0

    Now from my previous post.
    I found this:
    # https://codex.ww.wp.xz.cn/Creating_an_Error_404_Page

    This is the hardcoded of 404 ships with WordPress.
    this said to do this:

    # https://codex.ww.wp.xz.cn/Creating_an_Error_404_Page
    ErrorDocument 404 /index.php?error=404
    
    # Apache cPanel Default
    #ErrorDocument 400 /400.shtml
    #ErrorDocument 401 /401.shtml
    #ErrorDocument 403 /403.shtml
    #ErrorDocument 404 /404.shtml
    #ErrorDocument 406 /406.shtml
    #ErrorDocument 500 /500.shtml

    and AO Hendler shows the fallback:
    https://locksmithunit.com/wp-content/cache/autoptimize/js/autoptimize_fallback.js
    https://locksmithunit.cat/wp-content/cache/autoptimize/js/autoptimize_fallback.js
    https://locksmithunit.es/wp-content/cache/autoptimize/js/autoptimize_fallback.js

    __________________________________________

    Now the problem is nothing not stop the real 404 have on a daily basis…
    I off the plugin 404 redirect home page because you said is not working.
    (btw the plugin has the “hardcoded” code from WordPress)
    but when we test it, you said is not working.

    now I try to do custom error pages with c-panel:

    ErrorDocument 404 /index.php?error=404

    # Apache cPanel Default
    ErrorDocument 400 /400.shtml
    ErrorDocument 401 /401.shtml
    ErrorDocument 403 /403.shtml
    ErrorDocument 404 /404.shtml
    ErrorDocument 406 /406.shtml
    ErrorDocument 500 /500.shtml`

    is not work as well…
    Now, I really don’t know if have a plugin to do it together with AO 404 Hendler.
    But i think Cpanel error pages is our best shot.

    The problem is WordPress take control no matter if I remove all the error document
    and the handler.

    We must make the HTML error pages to appear when we have 404 except Autoptimize CSS/js.

    maybe a set of rules?
    if have a plugin you know i don’t care to try it.

    • This topic was modified 5 years, 4 months ago by Nadav Levi.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Pretty much out of scope of AO really, but … I guess your theme has a 404.html template, change that (in a child theme) to redirect to the homepage maybe?

    Thread Starter Nadav Levi

    (@123nadav)

    I have with Mesmerize, i will chack in the docomantions.
    but the problem is, it is really gonna redirect with the AO hendler?

    Thread Starter Nadav Levi

    (@123nadav)

    I can use a plugin as well.
    if have a redirection wp plugin do it and you know the plugin go along with AO 404
    Tell me i will try him.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I would think so, but you’ll need to test/ check, I have no experience with that really 🙂

    Thread Starter Nadav Levi

    (@123nadav)

    Frank is a big issue.
    Is not your fault, and this not so hard, you only need to find a good plugin
    can be hendel 404 along with AO 404.

    I already download this, he has users like you,
    and he has good support.

    look good for now is installed on:
    locksmithunit.com

    I still check it and test it:
    https://redirection.me/

    If you have something better, update me in the post.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    If you have something better, update me in the post.

    Don’t have experience with that, no.

    But good you’re finding what you need though Nadav! 🙂

    Thread Starter Nadav Levi

    (@123nadav)

    Is not only me.
    Is everybody will need to do it.
    I understand why apache not working.

    WordPress design the API WordPress to control the permalink.
    everything must be controlled by WordPress.

    if people want to use AO 404 hendler they will need to do what I do right now,

    If not they will get rank dropping in SEO or server 404 errors…

    This is very tricky, from one side you use the AO Hendler to not get a 404
    on css and js.

    from the other side, you need to deal with the daily 404 or any other error.
    this is A-B-C of the new WordPress and you must inform or instruct people before they
    activate the AO 404 Hendler. if not something worst will hit their websites.

    in this scenario SEO with google, the mine propose of creating a website.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    while missing autoptimized JS/ CSS is in scope of Autoptimize, not-found pages do not (SEO plugins might have functionality for that).

    but indeed the way 404’s are handled does not only depend on WordPress, but also on webserver setup (and some hosters don’t want 404’s to be handled by WordPress as that can increase server load significantly as 404’s are typically not cached by page caches).

    Thread Starter Nadav Levi

    (@123nadav)

    Yes, but you must understand, WordPress tries to pull out everything and go on its own.
    before WordPress 5.5.6 you was able to use Error Pages with Cpanel.

    now you not because of this:
    # https://codex.ww.wp.xz.cn/Creating_an_Error_404_Page

    You cant.
    You must understand these everyday changes.
    Google too.

    AO is the best tool
    I ever see for WP…

    this the reason I told you to do the option
    clean the cache, this will be revolutionary.

    Think about that, without the use of wp-cache, a
    cache system like Autoptimize is the next thing.
    especially with Nginx, in the minute AO is fully automatic is… WOW

    But have more stuff like SEO (in this case 404)

    And AO must be compiled with the AO 404 hendler you offer.
    If not make more damage from helping.

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

The topic ‘Page Errors Apache / cPanel | 404 Handler AO WORKING’ is closed to new replies.