• Resolved mrwoo2020

    (@mrwoo2020)


    Hola,

    Tengo un problema con la pasarela de pago de Redsys en mi WordPress, aparece un error de time out y tengo la sensación que tiene algo que ver con el SSL. Veo en los ajustes del plugin que si estás usando HTTPS y Redsys no es compatible con tu certificado, por ejemplo Let’s Encrypt, debes activar esta función. ATENCIóN: Si estás forzando la redirección a HTTPS mediante htaccess (si usas Really Simple SSL seguro que lo haces), necesitas a?adir una excepción para que no redirija la URL de notificación.

    ?Qué exceptción tengo que a?adir y cómo puedo hacerlo?

    Muchas gracias.

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

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

    (@markwolters)

    Hi,

    do you use the Redsys WooCommerce gateway? To exclude WooCommerce Redsys from SSL you can add the following line to your .htaccess file, right below the ‘RewriteEngine on’ line in the Really Simple SSL redirect:

    RewriteCond% {QUERY_STRING}! Wc-api = WC_MyRedsys [NC]

    This will not redirect to https:// if the request is made by the WooCommerce Redsys payment gateway. See https://targetimc.com/woocommerce-pedidos-en-espera/

    If you use a different payment plugin I’d suggest to contact the author of that plugin or Redsys, they will be able to provide you with the correct code.

    Mark

    Thread Starter mrwoo2020

    (@mrwoo2020)

    Hola Mark,

    Gracias por tu respuesta, pero he modificado htaccess tal y como me comentas y la web ha entrado en un error 500. He vuelto a quitar esa línea y se ha vuelto a ver correctamente la web. Te envío mi .htaccess por si hubiera que eliminar otra línea que crea incompatibilidades:

    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.9]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    # BEGIN WordPress
    # Las directivas (líneas) entre BEGIN WordPress y END WordPress se generan dinámicamente
    # , y solo se deberían modificar mediante filtros de WordPress.
    # Cualquier cambio en las directivas que hay entre esos marcadores se sobreescribirán.
    <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

    Gracias.

    Plugin Author Mark

    (@markwolters)

    Hi,

    if that line doesn’t work it’s possible the line should be something different. Since this can depend on the gateway plugin you are using I’d suggest to contact either the author of the plugin you are using or Redsys themselves, they can provide more accurate information on which line to use exactly. Generally conditions that should be excluded from the redirect can be entered after these lines:

    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.9]
    <IfModule mod_rewrite.c>
    RewriteEngine on

    Mark

    Thread Starter mrwoo2020

    (@mrwoo2020)

    Gracias, hablaré con el desarrollador del plugin.

    Un saludo.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cómo a?adir una excepción para que no redirija la URL de notificación’ is closed to new replies.