Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fboylovesyou

    (@fboylovesyou)

    For a solution I cancelled the php handler file and update server code lines like this below and now it is working fine ??????

    location ~* /wp-content/cache/autoptimize/.*\.(css)$ {
        try_files $uri $uri/ /wp-content/cache/autoptimize/css/autoptimize_fallback.css;
    }
    
    location ~* /wp-content/cache/autoptimize/.*\.(js)$ {
        try_files $uri $uri/ /wp-content/cache/autoptimize/js/autoptimize_fallback.js;
    }
    Thread Starter fboylovesyou

    (@fboylovesyou)

    Thread Starter fboylovesyou

    (@fboylovesyou)

    I realized that redirection works successfully on server but the php handler file can not get the REQUEST_URL.

    I added some codes to the autoptimize_404_handler.php file and I wrote all server variables to screen, but I can not get the request url. here are all server variables I can find, so the handler file returns a 410 header.

    do you have any suggestion to fix this issue?

    PHP_SELF	/wp-content/autoptimize_404_handler.php
    argv	-
    argc	-
    GATEWAY_INTERFACE	CGI/1.1
    SERVER_ADDR	127.0.0.1
    SERVER_NAME	dsocioevents.wpengine.com
    SERVER_SOFTWARE	Apache
    SERVER_PROTOCOL	HTTP/1.0
    REQUEST_METHOD	GET
    REQUEST_TIME	1625082750
    REQUEST_TIME_FLOAT	1625082750.93
    QUERY_STRING	
    DOCUMENT_ROOT	/nas/wp/www/sites/dsocioevents
    HTTP_ACCEPT	text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
    HTTP_ACCEPT_CHARSET	-
    HTTP_ACCEPT_ENCODING	gzip, deflate, br
    HTTP_ACCEPT_LANGUAGE	en-US,en;q=0.9
    HTTP_CONNECTION	close
    HTTP_HOST	dsocioevents.wpengine.com
    HTTP_REFERER	-
    HTTP_USER_AGENT	Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
    HTTPS	on
    REMOTE_ADDR	31.223.2.252
    REMOTE_HOST	-
    REMOTE_PORT	45378
    REMOTE_USER	-
    REDIRECT_REMOTE_USER	-
    SCRIPT_FILENAME	/nas/wp/www/sites/dsocioevents/wp-content/autoptimize_404_handler.php
    SERVER_ADMIN	[no address given]
    SERVER_PORT	80
    SERVER_SIGNATURE	
    PATH_TRANSLATED	-
    SCRIPT_NAME	/wp-content/autoptimize_404_handler.php
    REQUEST_URI	/wp-content/autoptimize_404_handler.php
    PHP_AUTH_DIGEST	-
    PHP_AUTH_USER	-
    PHP_AUTH_PW	-
    AUTH_TYPE	-
    PATH_INFO	-
    ORIG_PATH_INFO	-
    Thread Starter fboylovesyou

    (@fboylovesyou)

    related article on WPEngine
    https://wpengine.com/resources/wordpress-plugins-site-optimization/

    your plugin is at the top of this list but unfortunately it is not working properly on their servers

    Thread Starter fboylovesyou

    (@fboylovesyou)

    My hosting company is Wpengine and I saw your plugin on their suggested optimize plugins. Do you have any idea how to setup nginx server on wpengine to catch this broken css or js files.

    I sent them this code to setup server:

    location ~* /wp-content/cache/autoptimize/.*\.(js|css)$ {
        try_files $uri $uri/ /wp-content/autoptimize_404_handler.php;
    }

    but you say that it doesn’t work. do you have any idea to solve this issue?

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