Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Иван

    (@ivanass)

    Thread Starter Иван

    (@ivanass)

    I found out that the plugin stops working with the following directives in .htaccess:

    RewriteCond %{REQUEST_URI} !\?
    RewriteCond %{REQUEST_URI} !\&
    RewriteCond %{REQUEST_URI} !\=
    RewriteCond %{REQUEST_URI} !\.
    RewriteCond %{REQUEST_URI} !\/$
    RewriteRule ^(.*[^\/])$ /$1/ [R=301,L]

    301 redirects from pages without slash to slash

    Plugin Author Buttonizer

    (@buttonizer)

    Hi @ivanass ,

    Thanks for letting us know that you are experiencing this issue!

    Another user on our community experienced the same issue a while ago. The reason is indeed the redirection from that .htaccess script. It unfortunately manipulates the Buttonizer saving request.

    You can read the full explanation here: https://community.buttonizer.pro/d/432-400-bad-request/15

    In your case it should also be fixed if you add RewriteCond %{REQUEST_URI} !^/(wp-json) to the excludes.

    Your updated code:

    
    RewriteCond %{REQUEST_URI} !\?
    RewriteCond %{REQUEST_URI} !\&
    RewriteCond %{REQUEST_URI} !\=
    RewriteCond %{REQUEST_URI} !\.
    RewriteCond %{REQUEST_URI} !\/$
    RewriteCond %{REQUEST_URI} !^/(wp-json)
    RewriteRule ^(.*[^\/])$ /$1/ [R=301,L]
    

    Let us know if there’s anything else ??

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t publish button’ is closed to new replies.