Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter NRNR

    (@nuno-recio)

    done, and sorry for the delay ??

    Thread Starter NRNR

    (@nuno-recio)

    Hi,

    I do not have access to error log files. I’ll create the error log in two days time, because I do not have time now to handle this

    talk to you then
    thx

    Thread Starter NRNR

    (@nuno-recio)

    Hello,

    I’ve tried activating the plugin with only the following code on my htaccess (to be able to use permalinks):

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    It has resulted in a 500 internal server error

    Do you have any ideas of overcoming this?
    thx for your support

    Thread Starter NRNR

    (@nuno-recio)

    Hi Nevma,

    Sure, here it goes
    The plugin creates this:
    # BEGIN Adaptive Images
    #=======================

    <IfModule mod_rewrite.c>

    RewriteEngine On

    # Watched directories
    RewriteCond %{REQUEST_URI} /wp-content/uploads [OR]
    RewriteCond %{REQUEST_URI} /wp-content/themes

    # Redirect images through the adaptive images script
    RewriteRule \.(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-images/adaptive-images-script.php [L]

    </IfModule>

    # END Adaptive Images

    I have already have the following rewrite rules defined (from git hub apache settings):

    # ----------------------------------------------------------------------
    # | Error prevention                                                   |
    # ----------------------------------------------------------------------
    
    # Disable the pattern matching based on filenames.
    #
    # This setting prevents Apache from returning a 404 error as the result
    # of a rewrite when the directory with the same name does not exist.
    #
    # https://httpd.apache.org/docs/current/content-negotiation.html#multiviews
    
    Options -MultiViews
    
    # ----------------------------------------------------------------------
    # | Rewrite engine                                                     |
    # ----------------------------------------------------------------------
    
    # (1) Turn on the rewrite engine (this is necessary in order for
    #     the <code>RewriteRule</code> directives to work).
    #
    #     https://httpd.apache.org/docs/current/mod/mod_rewrite.html#RewriteEngine
    #
    # (2) Enable the <code>FollowSymLinks</code> option if it isn't already.
    #
    #     https://httpd.apache.org/docs/current/mod/core.html#options
    #
    # (3) If your web host doesn't allow the <code>FollowSymlinks</code> option,
    #     you need to comment it out or remove it, and then uncomment
    #     the <code>Options +SymLinksIfOwnerMatch</code> line (4), but be aware
    #     of the performance impact.
    #
    #     https://httpd.apache.org/docs/current/misc/perf-tuning.html#symlinks
    #
    # (4) Some cloud hosting services will require you set <code>RewriteBase</code>.
    #
    #     https://www.rackspace.com/knowledge_center/frequently-asked-question/why-is-modrewrite-not-working-on-my-site
    #     https://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase
    #
    # (5) Depending on how your server is set up, you may also need to
    #     use the <code>RewriteOptions</code> directive to enable some options for
    #     the rewrite engine.
    #
    #     https://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriteoptions
    #
    # (6) Set %{ENV:PROTO} variable, to allow rewrites to redirect with the
    #     appropriate schema automatically (http or https).
    
    <IfModule mod_.c>
    
        # (1)
        RewriteEngine On
    
        # (2)
        Options +FollowSymlinks
    
        # (3)
        # Options +SymLinksIfOwnerMatch
    
        # (4)
        RewriteBase /
    
        # (5)
        RewriteOptions <options>
    
        # (6)
        RewriteCond %{HTTPS} =on
        RewriteRule ^ - [env=proto:https]
        RewriteCond %{HTTPS} !=on
        RewriteRule ^ - [env=proto:http]
    
    </IfModule>
    
    # ----------------------------------------------------------------------
    # | Filename-based cache busting                                       |
    # ----------------------------------------------------------------------
    
    # If you're not using a build process to manage your filename version
    # revving, you might want to consider enabling the following directives
    # to route all requests such as <code>/style.12345.css</code> to <code>/style.css</code>.
    #
    # To understand why this is important and even a better solution than
    # using something like <code>*.css?v231</code>, please see:
    # https://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
    
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.+)\.(\d+)\.(bmp|css|cur|gif|ico|jpe?g|js|png|svgz?|webp|webmanifest)$ $1.$3 [L]
    </IfModule>
    
    # ----------------------------------------------------------------------
    # | EXISTENTE                                                          |
    # ----------------------------------------------------------------------
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    So whenever I try to insert the rule to redirect image files to the plugin, it crashes my site.
    Have any idea what it could be?

    Also after crashing, i have to redefine permalink structure to postname again, because my posts then give me a 404 error

    thx

    Thread Starter NRNR

    (@nuno-recio)

    closing ticket

    Thread Starter NRNR

    (@nuno-recio)

    SSL check issue. Nothing I can do.

    Please disregard ticket.
    it’s an issue with my hosting company.

    thx anyway

    Thread Starter NRNR

    (@nuno-recio)

    Thread Starter NRNR

    (@nuno-recio)

    Ok thanks, here’s my review for ur plugin 5* ??

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