Normally, problems like this are coming from .htaccess file. Please, review it and fix if needed. This and related docs may help: https://codex.ww.wp.xz.cn/Giving_WordPress_Its_Own_Directory
Make sure there is no real folder /en on file system.
Check the consistency of options “WordPress Address (URL)” and “Site Address (URL)” on page /wp-admin/options-general.php.
A 3rd-party plugin may be doing something funny. Try to isolate which plugin is in conflict. You may have already followed troubleshooting guide, did you?
Has plugin “WPS Hide Login” done some customization for old qTranslate? This sometimes may generate double /en, since old qTranslate was supplying home_url without /en and some 3rd-party plugins adjusted their code to force /en in, which makes double /en/en now with qtx. If this is a case, please do not forget to let the authors of such plugin know.
I hope you will figure it out, otherwise open a ticket on GitHub, with the description of the result of the troubleshooting described above.
Hi John,
I’ve tried on a blank installation.
These are the settings:
WordPress Address (URL): http://mywebsite.com/wp
Site Address (URL): http://mywebsite.com
and permalinks structure with Post name: http://mywebsite.com/%postname%/
This is what I have in .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I’ve installed only WPS Hide Login with twentyfifteen theme.
I’ve set http://mywebsite.com/login/ and it works as expected.
I’ve installed qTranslate X, with Pre-Path Mode (also for default language).
If I try to go to http://mywebsite.com/login/ it redirects to http://mywebsite.com/en/login/ but inspecting the $_SERVER['REQUEST_URI'] I get http://mywebsite.com/en/en/login/.
And it’s always a 404 page, can’t access to login.
Hope this helps, you could reproduce the same I suppose since there isn’t any other plugin or custom settings.
Thanks