Wpml bug htaccess

  • Posted:
  • Proposals: 11
  • Remote
  • #1967010
  • Awarded
Poonam P.
Vyron D.Aruna S.Gaurav R.Karanbir S. + 6 others have already sent a proposal.
  • 7

Description

Experience Level: Intermediate
The issue is:
Each time we save any settings in WPML, the plugin changes the WordPress rewrite rules within the .htaccess file from


RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

<-- working rules

to


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

<-- creates error 500

Is there any possibility to remove the update function from WPML for this part? Or will it be enough to restrict write access for the htaccess file to prevent WPML from changing it? Will this option cause issues in the future (besides having to chmod every time a change is planned)?

Same error :
https://wpml.org/forums/topic/when-i-save-permalink-structure-htaccess-rewritebase-add-fr/
https://wpml.org/forums/topic/upon-saving-options-wpml-inserts-incorrect-rewrite-rules-to-htaccess/
https://wpml.org/forums/topic/htaccess-file-been-changed-from-time-to-time-and-site-gets-500-internal-error/
https://wpml.org/forums/topic/wpml-rewrites-htaccess-when-switching-language-causing-server-error-500-alert/

Thank you in advance!

New Proposal

Create an account now and send a proposal now to get this project.

Sign up

Clarification Board Ask a Question

  • Poonam P.

    Hi Jean WPML rute change according to script but this can be customized by logged into admin where set wordpress permalink structure to default and after that back to custom format '/%postname%/' to clear rewrite rules cache
    But need to code also in root then this work

    Jean B.08 Apr 2018

    Thks,
    Sorry for my english do you have a price?

    Poonam P.08 Apr 2018

    First can i see the admin then i give you exact price but if this is only that where i think about that code then not taking more then 2 hours to fix