• Resolved gore.m

    (@gorem)


    Hello,
    I installed WPS Hide Login and set up new login url.
    When I open new link (dashboard sugested to save) for example example.com/de/new-login Ive got 404 error.
    WPS is automatically including WPML language slug in new url but only example.com/new-login is working and shows login page, if I hit “log in” Im redirected to example.com/de/new-login = 404 error.

    and

    “Log out” redirects to this link example.com/de/user/?action=logout&_wpnonce=c7fe08f880 = 404 again.

    May I ask you where is problem? Am I doing anything wrong?
    Thanks you

Viewing 15 replies - 1 through 15 (of 29 total)
  • Plugin Author NicolasKulka

    (@nicolaskulka)

    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 6 years, 8 months ago by gore.m.
    Plugin Author NicolasKulka

    (@nicolaskulka)

    /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 ??

    Plugin Author NicolasKulka

    (@nicolaskulka)

    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)

    Plugin Author NicolasKulka

    (@nicolaskulka)

    With same settings.

    WPML : version 3.9.1
    WPS Hide Login : version 1.2.6.1

    It works.

    Plugin Author NicolasKulka

    (@nicolaskulka)

    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).

    Plugin Author NicolasKulka

    (@nicolaskulka)

    Problem on the htaccess

    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:// .

    Plugin Author NicolasKulka

    (@nicolaskulka)

    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
    Plugin Author NicolasKulka

    (@nicolaskulka)

    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
Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘WP-Admin = 404 + I can’t log out’ is closed to new replies.