• Resolved scarlywebs

    (@scarlywebs)


    Hi just downloaded your guy’s plugin works great! super simple. The login page was able to change to another link without any problems but for some reason the redirection link doesn’t go to the URL page I changed it to, is there a reason for that?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support MaximeWPS

    (@seinomedia)

    Hello,

    Thanks for using WPS Hide Login.

    I think about a conflict with another plugin. Have you tried to deactivate every other plugins ?

    @scarlywebs

    You have to create a domain redirect for your new page. Needs to be 301 redirect in cPanel.

    For example:

    https://site.com/wp-login.php redirects to https://site.com/mypage

    Depending on what control panel you are using, look for “Domain Redirects” as an option.

    Thread Starter scarlywebs

    (@scarlywebs)

    @seinomedia Hi thanks for the reply, I did try that but none of the plugins seems to cause the problem of the redirect.

    Also just now realized this only happens to the wp-login.php page if I try to go to the admin page it will redirect so not a problem with that.

    • This reply was modified 1 year, 7 months ago by scarlywebs.
    Thread Starter scarlywebs

    (@scarlywebs)

    Hey @sandgroper thanks for reply, i do not have a cPanel i have my own server and use Runcloud panel to control it. Is it a file do i need to change in order to use redirects?

    Plugin Support MaximeWPS

    (@seinomedia)

    Hello,

    @sandgroper There’s no need to create a redirect in .htaccess or in cpanel…

    @scarlywebs Even with WPS Hide Login only activated, you still have the redirect ? To wp-login.php or another random URL ?

    Thread Starter scarlywebs

    (@scarlywebs)

    @seinomedia just now realized this only happens to the wp-login.php page it won’t redirect it, but if I try to go to the wp-admin page it will redirect so not a problem with that.

    And yes even with the WPSHide plugin only activated still wouldn’t redirect the wp-login page it will just go straight to my 404 error page.

    • This reply was modified 1 year, 7 months ago by scarlywebs.
    Plugin Support MaximeWPS

    (@seinomedia)

    Euh… I don’t uderstand.

    WPS Hide Login let you create a secret slug for your login page.

    Then, you can only log in at https://www.yoursite.com/yoursecretslug.

    With this secret slug set in WPS Hide Login, https://www.yoursite.com/wp-login.php and https://www.yoursite.com/wp-admin should redirect to 404 for non_logged_in users and /wp-admin reaches to WordPress backoffice for logged_in users. Is it the case ?

    @scarlywebs No it’s not a file. By default the plugin goes to the error 404 page. You need to redirect it to your page instead.

    Somewhere in Runcloud I would assume there is a function to set up redirects. In cPanel it’s under Domains>Redirects

    Look for where you have the option to add a subdomain or addon domain and it will probably be around that area somewhere.

    Or maybe there is a totally separate area where you can configure redirects. You’re not looking for a file or a way to modify the plugin, only a function in your account for that domain.

    If your server supports .htaccess you could add this to the bottom, changing mysite and mypage to yours:

    RewriteCond %{HTTP_HOST} ^mysite.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.mysite.com$
    RewriteRule ^wp-login.php$ "https\:\/\/mysite.com\/mypage" [R=301,L]
    RewriteCond %{HTTP_HOST} ^mysite.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.mysite.com$
    RewriteRule ^wp-login.php\/$ "https\:\/\/mysite.com\/mypage" [R=301,L]

    Thread Starter scarlywebs

    (@scarlywebs)

    @seinomedia I am not sure why it’s only working for the wp-admin.php
    I think it has something to do with the plugin settings forcing the wp-login to only redirect to a 404 page. And like @sandgroper it is its main default.

    @scarlywebs Yes, by default wp-admin goes to your page, but wp-login.php does not.

    That’s why you need the redirect.

    Thread Starter scarlywebs

    (@scarlywebs)

    @sandgroper Hey graham thanks for the input! I did see in my Runcloud panel for domain redirects I can try that and see if it works. I would prefer not to use it that way but seems I got no choice lol.

    • This reply was modified 1 year, 7 months ago by scarlywebs.

    It’s the only way it will work. It doesn’t do any damage using redirects, so no need to panic.

    @seinomedia We are not talking about the secret slug, but the page you set up to send hackers to.

    Your plugin has always used that page for wp-admin/wp-admin.php but not for wp-login.php

    To send hackers to that page for wp-login.php you need to create the redirect.

    Maybe you could capture that page somehow and let the plugin do the redirect. It would solve the problem. Something to think about?

    • This reply was modified 1 year, 7 months ago by Graham.
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Redirection URL NOT working’ is closed to new replies.