• Hi,

    following you documentation on a Nginx environment I believe that I have to modify the server script in order to prepend the path of wordpress installation as follow (capital letter only to show better)

    # WebP Express rules
    # --------------------
    location ~* ^/?MYWPFOLDER/wp-content/.*\.(png|jpe?g)$ {
      add_header Vary Accept;
      expires 365d;
      if ($http_accept !~* "webp"){
        break;
      }
      try_files
        /MYWPFOLDER/wp-content/webp-express/webp-images/doc-root/$uri.webp
        $uri.webp
        /MYWPFOLDER/wp-content/plugins/webp-express/wod/webp-on-demand.php?xsource=x$request_filename&wp-content=wp-content
        ;
    }
    
    # Route requests for non-existing webps to the converter
    location ~* ^/?newpana/wp-content/.*\.(png|jpe?g)\.webp$ {
        try_files
          $uri
          /MYWPFOLDER/wp-content/plugins/webp-express/wod/webp-realizer.php?xdestination=x$request_filename&wp-content=wp-content
          ;
    }
    # ------------------- (WebP Express rules ends here)

    The question is, should prepend the path also here, at the end of the line?

    /MYWPFOLDER/wp-content/plugins/webp-express/wod/webp-on-demand.php?xsource=x$request_filename&wp-content=MYWPFOLDER/wp-content

    thanks,
    Simone

    • This topic was modified 2 years, 5 months ago by Drauth.
  • The topic ‘About the path for WordPress in a subfolder’ is closed to new replies.