• Resolved Anonymous User 16617110

    (@anonymized-16617110)


    Hello, the two last updates of TranslatePress causes a htaccess rewrite. If your site is domain.com after the update in the rules:

    RewriteBase /
    RewriteRule . /index.php [L]

    TranslatePress rewrite to

    RewriteBase /en 
    RewriteRule . /en/index.php [L]

    (or any language active in your installation)

    This cause a internal server error 500.

    Please solve this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Since this looks a lot like a conflict with some other code, the first/next recommended step is the conflict test (ideally in a staging environment):

    ??*Briefly* disable all other plugins and enable the default Twenty Twenty theme. Please also disable all add-ons. If this fixes the problem, as it probably will, enable everything one by one, checking each time to see when the problem returns.

    Please let us know when you find the conflict so that we can take a look and see what we can do about it.

    Translatepress dont write any htaccess. so it may be a plugin that detect your homepage as /en and put a redirect to it.

    Cheers,

    We also have exactly the same issue after updating. This is not an issue with other plugins.

    Translatepress is rewriting the htaccess file as described, depending on the language selected in the translatepress plugin on the frontend.

    If I select Spanish (es) in TranslatePress I get

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

    If I select German (de) in TranslatePress on the front end I get

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

    As described by the OP this is causing Internal Server Error 500. Please resolve ASAP.

    I’ve read it is something to do with WordPress updating permalinks

    Adding this to my child theme functions.php seems to have worked (so far):

    add_filter('flush_rewrite_rules_hard','__return_false');

    Hello @cetsat

    Could you please list the plugins that you are using ? As i stated before.. Translatepress don’t write anything into .htaccess but something do.

    So listing your own plugins and other valid information like: Your wordpress version as well with the php version may help us find what is causing this.

    Thanks for reporting this. I will forward it to our development team to look into it.

    Cheers,

    Thread Starter Anonymous User 16617110

    (@anonymized-16617110)

    WordPress 5.4.2
    PHP 7.4.6

    Astra PRO
    Elementor, Elementor PRO
    Jetpack
    Media Library Categories
    Official Facebook Pixel
    Rank Math SEO
    Translate Press
    WooCommerce
    WooCommerce Load More Products
    WooCommerce Services
    WooCommerce Stripe Gateway
    WP Rocket

    WordPress 5.5.1
    PHP Version 7.3.23

    Elementor, Elementor PRO
    Jetpack
    Translate Press
    WooCommerce
    WP Super Cache
    WooCommerce Upload My File
    WooCommerce Table Rate Shipping
    WooCommerce Bookings
    WCgatewaymp
    Tickets de l’évenement
    The Events Calendar : Filter Bar
    The Events Calendar: Community Events Tickets
    The Events Calendar: Community Events
    The Events Calendar PRO
    The Events Calendar
    Responsive Pricing Table
    PPOM for WooCommerce by N-MEDIA
    Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue
    Modèles d’e-mail
    LoginPress – Customizing the WordPress Login
    JSON API User
    JSON API
    Importer les événements
    Import Facebook Events Pro
    Give – Donation Plugin
    Event Tickets Plus
    Dokan Pro
    Dokan Lite
    Dokan – Intégration de réservation WooCommerce
    Contact Form 7
    Advanced Custom Fields PRO
    AddToAny Share Buttons

    Same problem here. Translatepress rewrites Htaccess rules and add /es or /de before index.php and it breaks the site.

    It hasn’t been fixed for over a year now and I will have to decide to use another translation plugin if this issue will not be fixed by your developers

    This needs an urgent update.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘updating translatepress causes htaccess rewrite’ is closed to new replies.