• Resolved henry74

    (@henry74)


    Hola

    Los pedidos de Redsys se me quedan pendientes de pago. Tengo instalado el really simple SSL y redirige http a https.

    Entiendo que debo poner algún código en el .htcaccess pero no se cual. Pego el contenido del fichero aqui para que veas lo que tengo, mil gracias !

    # BEGIN WP Rocket v3.2.5
    # Use UTF-8 encoding for anything served text/plain or text/html
    AddDefaultCharset UTF-8
    # Force UTF-8 for a number of file formats
    <IfModule mod_mime.c>
    AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml
    </IfModule>
    # FileETag None is not enough for every server.
    <IfModule mod_headers.c>
    Header unset ETag
    </IfModule>
    # Since we’re sending far-future expires, we don’t need ETags for static content.
    # developer.yahoo.com/performance/rules.html#etags
    FileETag None
    <IfModule mod_alias.c>
    <FilesMatch “\.(html|htm|rtf|rtx|txt|xsd|xsl|xml)$”>
    <IfModule mod_headers.c>
    Header set X-Powered-By “WP Rocket/3.2.5”
    Header unset Pragma
    Header append Cache-Control “public”
    Header unset Last-Modified
    </IfModule>
    </FilesMatch>
    <FilesMatch “\.(css|htc|js|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$”>
    <IfModule mod_headers.c>
    Header unset Pragma
    Header append Cache-Control “public”
    </IfModule>
    </FilesMatch>
    </IfModule>
    # Expires headers (for better cache control)
    <IfModule mod_expires.c>
    ExpiresActive on
    # Perhaps better to whitelist expires rules? Perhaps.
    ExpiresDefault “access plus 1 month”
    # cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
    ExpiresByType text/cache-manifest “access plus 0 seconds”
    # Your document html
    ExpiresByType text/html “access plus 0 seconds”
    # Data
    ExpiresByType text/xml “access plus 0 seconds”
    ExpiresByType application/xml “access plus 0 seconds”
    ExpiresByType application/json “access plus 0 seconds”
    # Feed
    ExpiresByType application/rss+xml “access plus 1 hour”
    ExpiresByType application/atom+xml “access plus 1 hour”
    # Favicon (cannot be renamed)
    ExpiresByType image/x-icon “access plus 1 week”
    # Media: images, video, audio
    ExpiresByType image/gif “access plus 4 months”
    ExpiresByType image/png “access plus 4 months”
    ExpiresByType image/jpeg “access plus 4 months”
    ExpiresByType image/webp “access plus 4 months”
    ExpiresByType video/ogg “access plus 1 month”
    ExpiresByType audio/ogg “access plus 1 month”
    ExpiresByType video/mp4 “access plus 1 month”
    ExpiresByType video/webm “access plus 1 month”
    # HTC files (css3pie)
    ExpiresByType text/x-component “access plus 1 month”
    # Webfonts
    ExpiresByType application/x-font-ttf “access plus 1 month”
    ExpiresByType font/opentype “access plus 1 month”
    ExpiresByType application/x-font-woff “access plus 1 month”
    ExpiresByType application/x-font-woff2 “access plus 1 month”
    ExpiresByType image/svg+xml “access plus 1 month”
    ExpiresByType application/vnd.ms-fontobject “access plus 1 month”
    # CSS and JavaScript
    ExpiresByType text/css “access plus 1 year”
    ExpiresByType application/javascript “access plus 1 year”
    </IfModule>
    # Gzip compression
    <IfModule mod_deflate.c>
    # Active compression
    SetOutputFilter DEFLATE
    # Force deflate for mangled headers
    <IfModule mod_setenvif.c>
    <IfModule mod_headers.c>
    SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
    RequestHeader append Accept-Encoding “gzip,deflate” env=HAVE_Accept-Encoding
    # Don’t compress images and other uncompressible content
    SetEnvIfNoCase Request_URI \
    \.(?:gif|jpe?g|png|rar|zip|exe|flv|mov|wma|mp3|avi|swf|mp?g|mp4|webm|webp|pdf)$ no-gzip dont-vary
    </IfModule>
    </IfModule>
    # Compress all output labeled with one of the following MIME-types
    <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE application/atom+xml \
    application/javascript \
    application/json \
    application/rss+xml \
    application/vnd.ms-fontobject \
    application/x-font-ttf \
    application/xhtml+xml \
    application/xml \
    font/opentype \
    image/svg+xml \
    image/x-icon \
    text/css \
    text/html \
    text/plain \
    text/x-component \
    text/xml
    </IfModule>
    <IfModule mod_headers.c>
    Header append Vary: Accept-Encoding
    </IfModule>
    </IfModule>
    <IfModule mod_mime.c>
    AddType text/html .html_gzip
    AddEncoding gzip .html_gzip
    </IfModule>
    <IfModule mod_setenvif.c>
    SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
    </IfModule>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} on [OR]
    RewriteCond %{SERVER_PORT} ^443$ [OR]
    RewriteCond %{HTTP:X-Forwarded-Proto} https
    RewriteRule .* – [E=WPR_SSL:-https]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteRule .* – [E=WPR_ENC:_gzip]
    RewriteCond %{REQUEST_METHOD} GET
    RewriteCond %{QUERY_STRING} =””
    RewriteCond %{HTTP:Cookie} !(wordpress_logged_in_|wp-postpass_|wptouch_switch_toggle|comment_author_|comment_author_email_) [NC]
    RewriteCond %{REQUEST_URI} !^(/(.+/)?feed/?|/finalizar-compra/(.*)|/carro-de-la-compra/|/mi-cuenta/(.*)|/wc-api/v(.*)|/(index\.php/)?wp\-json(/.*|$))$ [NC]
    RewriteCond %{HTTP_USER_AGENT} !^(facebookexternalhit).* [NC]
    RewriteCond “%{DOCUMENT_ROOT}/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}.html%{ENV:WPR_ENC}” -f
    RewriteRule .* “/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}.html%{ENV:WPR_ENC}” [L]
    </IfModule>
    # END WP Rocket

    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.5]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    # 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
    # BEGIN ShortPixelWebp
    # END ShortPixelWebp
    # REDIRECCION CERTIFICADO SSL REDSYS POR JOSE CONTI
    RewriteEngine on
    RewriteCond %{QUERY_STRING} !^wc-api=WC_Gateway_redsys
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    # FIN REDIRECCION CERTIFICADO SSL REDSYS POR JOSE CONTI

    # php — BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php70” package as the default “PHP” programming language.
    <IfModule mime_module>
    AddHandler application/x-httpd-ea-php70 .php .php7 .phtml
    </IfModule>
    # php — END cPanel-generated handler, do not edit

    • This topic was modified 4 years, 7 months ago by henry74.

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

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter henry74

    (@henry74)

    Había visto :

    “Si tu pedido se mantiene como a la espera de pago por Redsys, por favor, abre un hilo en los foros de WordPress.org, tiene solución y no es culpa del plugin.”

    en el escritorio de wordpress y pensé que tendría soporte aquí. Quizás esto es solo para los premiun?

    Plugin Author Jose Conti

    (@jconti)

    Disculpa, que no había visto la pregunta. Es correcto, aquí para soporte del plugin gratuito.

    A ver, aquí hay varias cosas.

    1.- Configura Really Simple SSL para que solo realice la redirección por htaccess. Esto es fundamental para no tener probleamas. Así que descmarca todas las otras (por WordPress, JS, etc).
    2.- Aprieta en guardar en la configuración de Really Simple SSL.
    3.- Marca no modificar más el htaccess (o algo así pone, ahora no lo recuerdo con exactitud).
    4.- Una vez hecho todo lo anterior, ve a editar el archivo htaccess, y busca si hay alguna libea añadida por Really Simple SSL. Se ve claro ya que lo pone comentado, tipo:

    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.5]

    Puede que no estén, hay veces que lo elimina cuando marcas que no te siga realizando las modificaciones.

    6.- Estuvieran o no estuvieran esas lineas, añades estas lineas a tu htaccess.

    # REDIRECCION CERTIFICADO SSL REDSYS POR JOSE CONTI
    RewriteEngine on
    RewriteCond %{QUERY_STRING} !^wc-api=WC_Gateway_redsys
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    # FIN REDIRECCION CERTIFICADO SSL REDSYS POR JOSE CONTI

    Las deberías poner justo antes de # BEGIN WordPress tal y como puedes ver en el código que has puesto tu mismo que hay en tu .htaccess actual.

    7.- Ve a la configuración del plugin, y activa la compatibilidad con certificados SNI.

    8.- Prueba de nuevo si el pedido queda marcado como pagado.

    En principio se deberían marcar ya como pagados.

    y disculpa de nuevo el retraso, que al ser agosto, se me han colado varios avisos que no he visto.

    Saludos

    Thread Starter henry74

    (@henry74)

    Hola ! gracias por contestar.

    Acabo de hacer todo lo que me has puesto, el tema es que al subir de nuevo el archivo al ftp, no puedo acceder a la página, da un error y no puedo hacer nada más que volver a poner el archivo original para poder ver algo.

    Te pego aquí el fichero htcaccess modificado que subo al servidor:

    # BEGIN WP Rocket v3.2.5
    # Use UTF-8 encoding for anything served text/plain or text/html
    AddDefaultCharset UTF-8
    # Force UTF-8 for a number of file formats
    <IfModule mod_mime.c>
    AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml
    </IfModule>
    # FileETag None is not enough for every server.
    <IfModule mod_headers.c>
    Header unset ETag
    </IfModule>
    # Since we’re sending far-future expires, we don’t need ETags for static content.
    # developer.yahoo.com/performance/rules.html#etags
    FileETag None
    <IfModule mod_alias.c>
    <FilesMatch “\.(html|htm|rtf|rtx|txt|xsd|xsl|xml)$”>
    <IfModule mod_headers.c>
    Header set X-Powered-By “WP Rocket/3.2.5”
    Header unset Pragma
    Header append Cache-Control “public”
    Header unset Last-Modified
    </IfModule>
    </FilesMatch>
    <FilesMatch “\.(css|htc|js|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$”>
    <IfModule mod_headers.c>
    Header unset Pragma
    Header append Cache-Control “public”
    </IfModule>
    </FilesMatch>
    </IfModule>
    # Expires headers (for better cache control)
    <IfModule mod_expires.c>
    ExpiresActive on
    # Perhaps better to whitelist expires rules? Perhaps.
    ExpiresDefault “access plus 1 month”
    # cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
    ExpiresByType text/cache-manifest “access plus 0 seconds”
    # Your document html
    ExpiresByType text/html “access plus 0 seconds”
    # Data
    ExpiresByType text/xml “access plus 0 seconds”
    ExpiresByType application/xml “access plus 0 seconds”
    ExpiresByType application/json “access plus 0 seconds”
    # Feed
    ExpiresByType application/rss+xml “access plus 1 hour”
    ExpiresByType application/atom+xml “access plus 1 hour”
    # Favicon (cannot be renamed)
    ExpiresByType image/x-icon “access plus 1 week”
    # Media: images, video, audio
    ExpiresByType image/gif “access plus 4 months”
    ExpiresByType image/png “access plus 4 months”
    ExpiresByType image/jpeg “access plus 4 months”
    ExpiresByType image/webp “access plus 4 months”
    ExpiresByType video/ogg “access plus 1 month”
    ExpiresByType audio/ogg “access plus 1 month”
    ExpiresByType video/mp4 “access plus 1 month”
    ExpiresByType video/webm “access plus 1 month”
    # HTC files (css3pie)
    ExpiresByType text/x-component “access plus 1 month”
    # Webfonts
    ExpiresByType application/x-font-ttf “access plus 1 month”
    ExpiresByType font/opentype “access plus 1 month”
    ExpiresByType application/x-font-woff “access plus 1 month”
    ExpiresByType application/x-font-woff2 “access plus 1 month”
    ExpiresByType image/svg+xml “access plus 1 month”
    ExpiresByType application/vnd.ms-fontobject “access plus 1 month”
    # CSS and JavaScript
    ExpiresByType text/css “access plus 1 year”
    ExpiresByType application/javascript “access plus 1 year”
    </IfModule>
    # Gzip compression
    <IfModule mod_deflate.c>
    # Active compression
    SetOutputFilter DEFLATE
    # Force deflate for mangled headers
    <IfModule mod_setenvif.c>
    <IfModule mod_headers.c>
    SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
    RequestHeader append Accept-Encoding “gzip,deflate” env=HAVE_Accept-Encoding
    # Don’t compress images and other uncompressible content
    SetEnvIfNoCase Request_URI \
    \.(?:gif|jpe?g|png|rar|zip|exe|flv|mov|wma|mp3|avi|swf|mp?g|mp4|webm|webp|pdf)$ no-gzip dont-vary
    </IfModule>
    </IfModule>
    # Compress all output labeled with one of the following MIME-types
    <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE application/atom+xml \
    application/javascript \
    application/json \
    application/rss+xml \
    application/vnd.ms-fontobject \
    application/x-font-ttf \
    application/xhtml+xml \
    application/xml \
    font/opentype \
    image/svg+xml \
    image/x-icon \
    text/css \
    text/html \
    text/plain \
    text/x-component \
    text/xml
    </IfModule>
    <IfModule mod_headers.c>
    Header append Vary: Accept-Encoding
    </IfModule>
    </IfModule>
    <IfModule mod_mime.c>
    AddType text/html .html_gzip
    AddEncoding gzip .html_gzip
    </IfModule>
    <IfModule mod_setenvif.c>
    SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
    </IfModule>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} on [OR]
    RewriteCond %{SERVER_PORT} ^443$ [OR]
    RewriteCond %{HTTP:X-Forwarded-Proto} https
    RewriteRule .* – [E=WPR_SSL:-https]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteRule .* – [E=WPR_ENC:_gzip]
    RewriteCond %{REQUEST_METHOD} GET
    RewriteCond %{QUERY_STRING} =””
    RewriteCond %{HTTP:Cookie} !(wordpress_logged_in_|wp-postpass_|wptouch_switch_toggle|comment_author_|comment_author_email_) [NC]
    RewriteCond %{REQUEST_URI} !^(/(.+/)?feed/?|/finalizar-compra/(.*)|/carro-de-la-compra/|/mi-cuenta/(.*)|/wc-api/v(.*)|/(index\.php/)?wp\-json(/.*|$))$ [NC]
    RewriteCond %{HTTP_USER_AGENT} !^(facebookexternalhit).* [NC]
    RewriteCond “%{DOCUMENT_ROOT}/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}.html%{ENV:WPR_ENC}” -f
    RewriteRule .* “/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}.html%{ENV:WPR_ENC}” [L]
    </IfModule>
    # END WP Rocket

    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.5]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    # REDIRECCION CERTIFICADO SSL REDSYS POR JOSE CONTI
    RewriteEngine on
    RewriteCond %{QUERY_STRING} !^wc-api=WC_Gateway_redsys
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    # FIN REDIRECCION CERTIFICADO SSL REDSYS POR JOSE CONTI
    # 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
    # BEGIN ShortPixelWebp
    # END ShortPixelWebp
    # php — BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php70” package as the default “PHP” programming language.
    <IfModule mime_module>
    AddHandler application/x-httpd-ea-php70 .php .php7 .phtml
    </IfModule>
    # php — END cPanel-generated handler, do not edit

    Plugin Author Jose Conti

    (@jconti)

    Cuidado con la codificación del archivo si lo estás modificando en tu ordenador, y sobre todo lo debes modificar con un editor de texto plano.

    Por otro lado, no has borrado el código que añade Really Simple SSL. en el código que has pegado, puedo ver esto:

    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.5]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL

    Esto lo debes borrar.

    Thread Starter henry74

    (@henry74)

    Hola,

    Uso el bloc de notas de windows. He borrado el código de Really Simple SSL y he puesto el tuyo y aún así no acepta el archivo. No lo entiendo.

    # BEGIN WP Rocket v3.2.5
    # Use UTF-8 encoding for anything served text/plain or text/html
    AddDefaultCharset UTF-8
    # Force UTF-8 for a number of file formats
    <IfModule mod_mime.c>
    AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml
    </IfModule>
    # FileETag None is not enough for every server.
    <IfModule mod_headers.c>
    Header unset ETag
    </IfModule>
    # Since we’re sending far-future expires, we don’t need ETags for static content.
    # developer.yahoo.com/performance/rules.html#etags
    FileETag None
    <IfModule mod_alias.c>
    <FilesMatch "\.(html|htm|rtf|rtx|txt|xsd|xsl|xml)$">
    <IfModule mod_headers.c>
    Header set X-Powered-By "WP Rocket/3.2.5"
    Header unset Pragma
    Header append Cache-Control "public"
    Header unset Last-Modified
    </IfModule>
    </FilesMatch>
    <FilesMatch "\.(css|htc|js|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$">
    <IfModule mod_headers.c>
    Header unset Pragma
    Header append Cache-Control "public"
    </IfModule>
    </FilesMatch>
    </IfModule>
    # Expires headers (for better cache control)
    <IfModule mod_expires.c>
    	ExpiresActive on
    	# Perhaps better to whitelist expires rules? Perhaps.
    	ExpiresDefault                              "access plus 1 month"
    	# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
    	ExpiresByType text/cache-manifest           "access plus 0 seconds"
    	# Your document html
    	ExpiresByType text/html                     "access plus 0 seconds"
    	# Data
    	ExpiresByType text/xml                      "access plus 0 seconds"
    	ExpiresByType application/xml               "access plus 0 seconds"
    	ExpiresByType application/json              "access plus 0 seconds"
    	# Feed
    	ExpiresByType application/rss+xml           "access plus 1 hour"
    	ExpiresByType application/atom+xml          "access plus 1 hour"
    	# Favicon (cannot be renamed)
    	ExpiresByType image/x-icon                  "access plus 1 week"
    	# Media: images, video, audio
    	ExpiresByType image/gif                     "access plus 4 months"
    	ExpiresByType image/png                     "access plus 4 months"
    	ExpiresByType image/jpeg                    "access plus 4 months"
    	ExpiresByType image/webp                    "access plus 4 months"
    	ExpiresByType video/ogg                     "access plus 1 month"
    	ExpiresByType audio/ogg                     "access plus 1 month"
    	ExpiresByType video/mp4                     "access plus 1 month"
    	ExpiresByType video/webm                    "access plus 1 month"
    	# HTC files  (css3pie)
    	ExpiresByType text/x-component              "access plus 1 month"
    	# Webfonts
    	ExpiresByType application/x-font-ttf        "access plus 1 month"
    	ExpiresByType font/opentype                 "access plus 1 month"
    	ExpiresByType application/x-font-woff       "access plus 1 month"
    	ExpiresByType application/x-font-woff2      "access plus 1 month"
    	ExpiresByType image/svg+xml                 "access plus 1 month"
    	ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
    	# CSS and JavaScript
    	ExpiresByType text/css                      "access plus 1 year"
    	ExpiresByType application/javascript        "access plus 1 year"
    </IfModule>
    # Gzip compression
    <IfModule mod_deflate.c>
    # Active compression
    SetOutputFilter DEFLATE
    # Force deflate for mangled headers
    <IfModule mod_setenvif.c>
    <IfModule mod_headers.c>
    SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
    RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
    # Don’t compress images and other uncompressible content
    SetEnvIfNoCase Request_URI \
    \.(?:gif|jpe?g|png|rar|zip|exe|flv|mov|wma|mp3|avi|swf|mp?g|mp4|webm|webp|pdf)$ no-gzip dont-vary
    </IfModule>
    </IfModule>
    # Compress all output labeled with one of the following MIME-types
    <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE application/atom+xml \
    		                          application/javascript \
    		                          application/json \
    		                          application/rss+xml \
    		                          application/vnd.ms-fontobject \
    		                          application/x-font-ttf \
    		                          application/xhtml+xml \
    		                          application/xml \
    		                          font/opentype \
    		                          image/svg+xml \
    		                          image/x-icon \
    		                          text/css \
    		                          text/html \
    		                          text/plain \
    		                          text/x-component \
    		                          text/xml
    </IfModule>
    <IfModule mod_headers.c>
    Header append Vary: Accept-Encoding
    </IfModule>
    </IfModule>
    <IfModule mod_mime.c>
    AddType text/html .html_gzip
    AddEncoding gzip .html_gzip
    </IfModule>
    <IfModule mod_setenvif.c>
    SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
    </IfModule>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} on [OR]
    RewriteCond %{SERVER_PORT} ^443$ [OR]
    RewriteCond %{HTTP:X-Forwarded-Proto} https
    RewriteRule .* - [E=WPR_SSL:-https]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteRule .* - [E=WPR_ENC:_gzip]
    RewriteCond %{REQUEST_METHOD} GET
    RewriteCond %{QUERY_STRING} =""
    RewriteCond %{HTTP:Cookie} !(wordpress_logged_in_|wp-postpass_|wptouch_switch_toggle|comment_author_|comment_author_email_) [NC]
    RewriteCond %{REQUEST_URI} !^(/(.+/)?feed/?|/finalizar-compra/(.*)|/carro-de-la-compra/|/mi-cuenta/(.*)|/wc-api/v(.*)|/(index\.php/)?wp\-json(/.*|$))$ [NC]
    RewriteCond %{HTTP_USER_AGENT} !^(facebookexternalhit).* [NC]
    RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}.html%{ENV:WPR_ENC}" -f
    RewriteRule .* "/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}.html%{ENV:WPR_ENC}" [L]
    </IfModule>
    # END WP Rocket
    # REDIRECCION CERTIFICADO SSL REDSYS POR JOSE CONTI
    RewriteEngine on
    RewriteCond %{QUERY_STRING} !^wc-api=WC_Gateway_redsys
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    # FIN REDIRECCION CERTIFICADO SSL REDSYS POR JOSE CONTI
    # 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
    # BEGIN ShortPixelWebp
    # END ShortPixelWebp
    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php70” package as the default “PHP” programming language.
    <IfModule mime_module>
      AddHandler application/x-httpd-ea-php70 .php .php7 .phtml
    </IfModule>
    # php -- END cPanel-generated handler, do not edit
    
    Plugin Author Jose Conti

    (@jconti)

    Es por el bloc de notas. El bloc de notas te debe estar cambiando la codificación del archivo.

    Cómo utilizas Windows y vas a utilizar muy esporádicamente este software, descárgate este https://www.geany.org/download/releases/ y utilízalo para abrir y guardar el htaccess, a ver si así no tienes problemas.

    Thread Starter henry74

    (@henry74)

    Bueno algo hemos avanzado 😉 Me he bajado el Geany y efectivamente ahora al menos la página es visible.

    Desgraciadamente aún con el código insertado y habilitando la opción de compatibilidad de certificados SNI, hago pedido de prueba y si recibo un correo de TPVVirtual@redsys.es con la operación pero el pedido sigue sin cambiar de estado.

    Que será?

    Plugin Author Jose Conti

    (@jconti)

    Ok,

    Si voy a esta dirección, http://brute-power.com/?wc-api=WC_Gateway_redsys, no soy redirigido a https, por el contrario, si voy por ejemplo a esta dirección http://brute-power.com/categoria-de-producto/cargadores-baterias-lipo/ sí que ya es correcto. Así que tiene que haber otra cosa.

    ¿Qué plugins estás utilizando? puedes ir a WooCommerce > Estado y ahí aprietas el botón para copiar todo el estado del sitio (que incorpora los plugins activos) y lo puedes pegar aquí.

    Thread Starter henry74

    (@henry74)

    HOla José, te pego la info:

    Redux Framework por Team Redux – 3.6.15
    AfterShip – WooCommerce Tracking por AfterShip – 1.9.9 – No probado con la versión activa de WooCommerce
    Akismet Anti-Spam por Automattic – 4.1.2
    Cloudflare por John Wineman, Furkan Yilmaz, Junade Ali (Cloudflare Team) – 3.3.3
    Companion Auto Update por Papin Schipper – 3.4.2
    Custom Base Terms por Art Project Group – 1.0.2.1
    Simple Custom CSS and JS por SilkyPress.com – 3.27
    Google Customer Reviews for WooCommerce por eCreations – 2.6.12 – No probado con la versión activa de WooCommerce
    Google Image Sitemap Feed With Multisite Support por Art Project Group – 1.2.0.4
    Google Mobile Sitemap Feed With Multisite Support por Art Project Group – 1.0.1.1
    Head & Footer Code por Aleksandar Urosevic – 1.0.9.1
    Hide Featured Image por shahpranaf – 1.3.1
    Instock Email Alert for Woocommerce por Laszlo Kruchio – 1.1.2 – No probado con la versión activa de WooCommerce
    Loco Translate por Tim Whitlock – 2.3.0
    Nextend Social Login por Nextendweb – 3.0.20
    Nextend Social Login Pro Addon por Nextendweb – 3.0.20
    Ni WooCommerce Cost Of Goods Pro por anzia – 1.2.5 – No probado con la versión activa de WooCommerce
    Ni WooCommerce Cost Of Goods por anzia – 2.2.0 – No probado con la versión activa de WooCommerce
    Pagamastarde por Pagamastarde – 7.2.7
    Product GTIN (EAN, UPC, ISBN) for WooCommerce por Emanuela Castorina – 1.0.5 – No probado con la versión activa de WooCommerce
    Really Simple SSL por Rogier Lankhorst, Mark Wolters – 3.2.5
    Optimize Database after Deleting Revisions por CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands – 4.8.2
    Shortcodes Ultimate por Vladimir Anokhin – 5.4.1
    ShortPixel Image Optimizer por ShortPixel – 4.14.4
    TinyMCE Advanced por Andrew Ozz – 5.2.1
    UpdraftPlus – Backup/Restore por UpdraftPlus.Com, DavidAnderson – 1.16.16
    User Roles and Capabilities por mahabub – 1.2.3
    WC – APG Campo NIF/CIF/NIE por Art Project Group – 1.4.0.1 – No probado con la versión activa de WooCommerce
    WooCommerce Blocks por Automattic – 2.3.1
    Order Weight for WooCommerce por We Up North – 0.3.5 – No probado con la versión activa de WooCommerce
    WooCommerce Redsys Gateway Light por José Conti – 1.3.7 – No probado con la versión activa de WooCommerce
    WooCommerce Admin por WooCommerce – 0.17.0
    WC – APG Envío Gratuito por Art Project Group – 2.4.0.2
    WC – APG Envío por peso por Art Project Group – 2.3.0.2
    WooCommerce Domination por Claudio Sanches – 1.1.6 – No probado con la versión activa de WooCommerce
    WooCommerce Pay for Payment por Karolína Vyskočilová – 2.0.12 – No probado con la versión activa de WooCommerce
    WooCommerce Role Based Methods por WPBackOffice – 2.4.1 – No probado con la versión activa de WooCommerce
    WooCommerce Sequential Order Numbers por SkyVerge – 1.9.0
    WooCommerce – Store Exporter Deluxe: Google Shopping – Product Review Feeds por Visser Labs – 1.2.2 – No probado con la versión activa de WooCommerce
    WooCommerce – Store Exporter Deluxe por Visser Labs – 3.5 – No probado con la versión activa de WooCommerce
    WooCommerce por Automattic – 3.7.0
    WooSidebars por WooCommerce – 1.4.5
    Wordfence Security por Wordfence – 7.4.0
    Yoast SEO por Equipo Yoast – 11.9
    Administrador de archivos WP por mndpsingh287 – 5.3
    WP Product Feed Manager por Michel Jongbloed – 1.15.0 – No probado con la versión activa de WooCommerce
    WP Rocket por WP Media – 3.2.5
    Yoast SEO: WooCommerce por Equipo Yoast – 11.9
    YITH WooCommerce PDF Invoice and Shipping List Premium por YITH – 2.0.6
    YITH WooCommerce Review For Discounts Premium por YITH – 1.2.8
    YITH WooCommerce Review Reminder Premium por YITH – 1.5.2 – No probado con la versión activa de WooCommerce
    YITH WooCommerce Role Based Prices Premium por YITH – 1.1.14
    YITH WooCommerce Zoom Magnifier por YITH – 1.3.11

    Plugin Author Jose Conti

    (@jconti)

    ¿Utilizas Cloudflare? te lo progunto por el plugin de Cloudflare. Si es así, ahí está el problema.

    Si lo utilizas ¿Utilizas la versión de pago o la versión gratuita?

    Thread Starter henry74

    (@henry74)

    Hola Jose,

    Si uso cloudfare, versión gratuita. Y es desde que lo han instalado que ha dejado de funcionar lo de la visa.

    gracias.

    Plugin Author Jose Conti

    (@jconti)

    Si, es por que Cloudflare detecta al navegador de Redsys que realiza las notificaciones como un bot malicioso, ya que es Java.

    Cuando se utiliza la versión gratuita de Cloudflare, es más complicado salvar el problema, y quizá tengas que contactar con el servicio de Redsys de vez en cuando.

    Ve a esta página https://redsys.joseconti.com/redsys-para-woocommerce/ y busca «Los pedidos se quedan a la espera de pago en WooCommerce (utilizo CloudFlare)»

    No hace falta que realices el primer punto, realiza a partir de «La opción Always Use HTTPS, ponla a off»

    A ver si de esta forma lo solucionamos. Te digo que igual tienes que ir contactando con Redsys, ya que igual sacan nuevas IPs, y hay que ir añadiéndolas.

    Thread Starter henry74

    (@henry74)

    Muchísimas gracias José, finalmente configurando Cloudfare, ya entra perfectamente. Estaré atento por si hay que añadir alguna IP de Redsys más en el futuro.

    Gracias de nuevo por el soporte y paciencia

    Plugin Author Jose Conti

    (@jconti)

    De nada,

    Lo marco como resuelto.

    Saludos

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘No me marca los pedidos como procesando’ is closed to new replies.