What is your version of WPML?
Possibly a setting to make in WPML.
Thread Starter
gore.m
(@gorem)
I have the latest versions.
Im using Language Directory for the Default Language
https://wpml.org/documentation/getting-started-guide/language-setup/directory-default-language/
Root page contain:
<?php
header("HTTP/1.1 301 Moved Permanently");
header( 'Location: //www.example.com/de/' ) ;
?>
So it looks like conflict with my root page redirect?
Do you have an idea how keep this settings and use your plugin?
Thanks you
edit:
Ive tried (with same problem):
<?php
wp_redirect( home_url() );
exit;
?>
-
This reply was modified 8 years, 1 month ago by
gore.m.
/de/login/?loggedout=true
It works perfectly.
Thread Starter
gore.m
(@gorem)
It is strange…
If I use only your plugin (WPML disabled) it works perfect.
If I use only WPML (your plugin disabled) it works perfect.
But together login url, log out url = 404 error 🙁
What is your setting ?
WPML and WPS Hide Login ?
Thread Starter
gore.m
(@gorem)
In WPS Hide Login I can set only slug, right? So I leaved it as it is default “login”.
If I “save changes” and opened Your login page is now here: https://www.example.com/de/login/. Bookmark this page! Ive got 404.
WPML:
Site Languages DE (default), EN
Language URL format:
Different languages in directories (yes)
Use directory for default language (yes)
HTML file (lang.php) (yes)
Make themes work multilingual (yes)
Browser language redirect (Disable)
Language filtering for AJAX operations (yes)
With same settings.
WPML : version 3.9.1
WPS Hide Login : version 1.2.6.1
It works.
Thread Starter
gore.m
(@gorem)
OK, I found out one thing: Everything works fine on localhost, but not on live server.
For to be sure… I reinstalled whole site with fresh localhost backup (Duplicator) and I didnt install (Wordfence, WP super cache, Autoptimize), but 404 error remain.
Only one diffrence I have from localhost is RewriteBase /TEMP/ (site is now hidden for testing in ‘TEMP’ folder – works without any problem except for WPML x WPS).
Thread Starter
gore.m
(@gorem)
I thought too, because one plugin noticed me that .htaccess is not writable, but .htaccess is 644 (and WP Fastest cache uses it). Does WPS need to write to .htaccess?
Except for WP fastest cache code there is only:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /TEMP/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /TEMP/index.php [L]
</IfModule>
# END WordPress
There is one more difference from localhost, it is SSL. But 404 link is right it has https:// .
Put your htaccess in 755, then install Really Simple SSL so that there is no error with SSL.
Thread Starter
gore.m
(@gorem)
Ok, RS SSL debug:
Options:
* WordPress redirect
* Mixed content fixer
SERVER: apache
SSL is enabled for this site
** Detecting configuration **
plugin version: 2.5.26
Already on SSL, start detecting configuration
SSL type: SERVER-HTTPS-ON
** Configuring SSL **
testing htaccess rules...
test page url, enter in browser to check manually: https://www.example.cz/TEMP/wp-content/plugins/really-simple-ssl/testssl/serverhttpson/ssl-test-page.html
htaccess rules test failed with error: Too many redirects
checking if .htaccess can or should be edited...
.htaccess does not contain default Really Simple SSL redirect
retrieving redirect rules
converting siteurl and homeurl to https
Problem htaccess
Put your htaccess in 755 or 777 and retry
Thread Starter
gore.m
(@gorem)
I had .htaccess in 755.
Same result with 777:
Options:
* WordPress redirect
* Mixed content fixer
SERVER: apache
SSL is enabled for this site
** Detecting configuration **
plugin version: 2.5.26
Already on SSL, start detecting configuration
SSL type: SERVER-HTTPS-ON
** Configuring SSL **
testing htaccess rules...
test page url, enter in browser to check manually: https://www.example.cz/TEMP/wp-content/plugins/really-simple-ssl/testssl/serverhttpson/ssl-test-page.html
htaccess rules test failed with error: Too many redirects
checking if .htaccess can or should be edited...
.htaccess does not contain default Really Simple SSL redirect
retrieving redirect rules
converting siteurl and homeurl to https