Title: Does it work with WPML?
Last modified: February 26, 2022

---

# Does it work with WPML?

 *  [dxfoxd](https://wordpress.org/support/users/dxfoxd/)
 * (@dxfoxd)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/does-it-work-with-wpml-8/)
 * The first attempt to setup this plugin resulted in an error.
    WP Hide – Unable
   to create environment static file. The system returned the following error: FTP
   hostname is required,FTP username is required,FTP password is required. FTP is
   not set. All updates are installed directly (but not automatically) using the
   wp-config.php option “define(‘FS_METHOD’, ‘direct’);”
 * **1. Does this plugin require the FTP credentials to be set?**
 * Second, in the WP Hide setup, the following error is displayed
    ”Rewrite test
   failed! The wp_remote_get() returns a Not Found page, probably the Rewrites are
   not active on your server! Rewrites are enabled. However, the Apache Rewrite 
   module is loaded and working.
 * my website is using WPML and uses the language code in the page url (for example[
   domain]/nl/[page]).
 * I noticed that the plugin inserts in the .htaccess file
 *     ```
       # BEGIN WP Hide & Security Enhancer
       <IfModule mod_rewrite.c> 
       RewriteEngine On 
       RewriteBase /nl/ 
       #WriteCheckString:1645610520_45934
       RewriteRule .* - [E=HTTP_MOD_REWRITE:On]
       RewriteRule ^rewrite_test_1645610520_45934/? /wp-content/plugins/wp-hide-security-enhancer/include/rewrite-confirm.php [L,QSA]
       </IfModule>
       ```
   
 * When performing the test that calls
 * `http://192.168.10.200:2099/nl/rewrite_test_1645610520_45934/`
 * the standard WordPress error page is displayed.Howevr, when I change the page
   url omitting the language code
 * `http://192.168.10.200:2099/rewrite_test_1645610520_45934/`
 * the expected Json text is displayed.
 * **2. Does this mean that the plugin is not compatible with WPML after all?** (
   Contrary to what is displayed on [https://wpml.org/plugin/wp-hide-security-enhancer/](https://wpml.org/plugin/wp-hide-security-enhancer/))
 * Art.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/does-it-work-with-wpml-8/#post-15414124)
 * Hi,
    1) Apparently your server does not support the direct FS_METHOD. Even if
   you define it within the wp-config.php, there is no capability from PHP ( that
   imply WordPress and our plugin ) to write files. So you should pick an alternative
   method like FTP. For more details check at [https://developer.wordpress.org/apis/handbook/filesystem/](https://developer.wordpress.org/apis/handbook/filesystem/)
 * 2) From what I see, the rewrite base is set to /nl/ which probably isn’t your
   main domain? Try to create the configuration on the main site e.g. –domain–/ 
   instead of a WPML language site. Do you run MultiSite?
    Otherwise, the WPML is
   compatible with our plugin.
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Does it work with WPML?’ is closed to new replies.

 * ![](https://ps.w.org/wp-hide-security-enhancer/assets/icon-256x256.png?rev=2937681)
 * [WP Hide & Security Enhancer](https://wordpress.org/plugins/wp-hide-security-enhancer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-hide-security-enhancer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hide-security-enhancer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hide-security-enhancer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hide-security-enhancer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hide-security-enhancer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Maya](https://wordpress.org/support/users/tdgu/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/does-it-work-with-wpml-8/#post-15414124)
 * Status: not resolved