WordPress.org

Ready to get started?Download WordPress

Forums

Rename wp-login.php
[resolved] Renamed, Can't login (28 posts)

  1. Nettric
    Member
    Posted 10 months ago #

    Brand new WordPress site running under Windows 2008 R2, IIS 7.5. The only other plugin I have installed is the Akismet. The only theme installed is Customizr...all current versions as of yesterday.

    What I have done:
    1) Downloaded rename-wp-login > unzipped > placed in plugin folder
    2) Activated rename-wp-login through admin panel > Plugins
    3) Redirected to Permalinks. Renamed to http://www.mysite.com/mylogin > Saved config
    4)Cleared browser cache > Went to http://www.mysite.com/mylogin
    5) Presented with 404
    6) Removed the plugin folder and was able to access wp-login.php again.

    Questions
    1) When I rename my site to /mylogin, should the plugin create a new folder in the root of the site or is this simply an update to the DB? (No new folder was created)
    2) DO I actually need to rename my wp-login.php file?

    http://wordpress.org/plugins/rename-wp-login/

  2. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    1) It's saved in the db, no folder or file should be created
    2) You don't have to rename the wp-login.php file.

    Did you rename it to /mylogin or mylogin?

  3. Nettric
    Member
    Posted 10 months ago #

    In the textbox, I simply erased the default login and typed mylogin with no forward slashes anywhere.

  4. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    Literally mylogin or something else? What's your website?
    Can you install the plugin from the plugin installer and try it again? Then I could also go to that url. What does it do when you leave login (the default)?

  5. Nettric
    Member
    Posted 10 months ago #

    Literally just mylogin. I have just installed the plugin via the plugin manager, activated the plugin, kept the default "login" path in Permalinks, saved the config, and still get a 404.

    Here is my website: http://www.giantpythons.com
    This should be the new login: http://www.giantpythons.com/login

    You'll see a custom 404 pop up...

  6. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    That's weird. The 404 page is not your normal 404 page right?
    I'll think about it, but I can't do much about it I'm afraid, unless I have access to you site.

  7. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    http://www.giantpythons.com/noxexistentpage generates a 404 page that's not a template in a wordpress theme. Where does that come from?

  8. Nettric
    Member
    Posted 10 months ago #

    The custom 404 you see is my custom 404. Even with the default IIS 404 http error page, it doesn't give much information.

    Even though IIS works a bit differently than Apache on Linux and hardening IIS and the anonymous IUSR account IIS uses for visitors, that really shouldn't be an issue since this plugin is a simple update to the DB...

    In other words, even though you login with a local WP account, all folders and file NTFS permissions are still being assessed with the IUSR account and NOT the account you log into WP with. But again, being as the plugin simply updates a MySQL value, this shouldn't be the issue.

    Let me know when you have time to work on it and I can give you access in the name of helping you improve the plugin. Do you just need WordPress Access or do you need/want server access as well?

    I would prefer we exchange that info via email. You can email me here:

    Please write my email address down as I will delete it here in a few minutes...

  9. Nettric
    Member
    Posted 10 months ago #

    That is a custom server-side 404...Independent of wordpress.

  10. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    Thanks, I've received your email address in my inbox.

    The plugin doesn't create a page or anything in the database, the custom login page doesn't exist at all. Initially wordpress will mark it as 404, because there is no such post in the database. But then the plugin intercepts if the request matches the value stored in the database and sets up a fake page.

    I could try to intercept earlier, but I'm not sure if that will help. How does this custom 404 page work? At what stage does it decide wordpress has something to show?

  11. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    Think I found the problem, sorry :)
    I'll keep you updated.

  12. Nettric
    Member
    Posted 10 months ago #

    My thoughts:

    When activated, the 404 comes across as a WordPress formatted 404. Like WordPress is saying that the page should be there but a link is broken.

    My custom 404 happens when the file or directory doesn't exist at all. At that point, IIS...not WordPress...throws my custom 404. The custom 404 is configured in IIS and simply points to my custom static pages.

  13. Nettric
    Member
    Posted 10 months ago #

    No worries.

  14. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    Uh, all this time I've been thinking the custom login page outputs a 200 status code, but actually it doesn't.
    I'll probably fix it with a few hours.

  15. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    Is your problem solved when you update to version 1.2?

  16. Nettric
    Member
    Posted 10 months ago #

    Sorry, same thing: server-side 404 (I get my custom 404 page). I even reset the error pages back to IIS defaults and still get a server-side 404 (non-WordPress formatted 404)

  17. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    Weird. Now the custom login page sends a 200 status code.

    My custom 404 happens when the file or directory doesn't exist at all.

    Ah, so enabling pretty permalinks wouldn't work then either?

  18. Nettric
    Member
    Posted 10 months ago #

    I wish I could help further. I'm a network enginner and IT Manager...not a programmer ;) It really is a mystery. I assume you're testing with Apache on Linux?

    Funny thing is, when activated and I try to access the original /wp-login.php I get a 404 that is formatted with my WordPress theme. The file is still physically there in the root of my WP site. So WordPress is catching it based on the URL and behaving properly in that scenario...giving me a 404 when I try to access wp-login.php.

    Yet when I try to access my new login location at /mylogin, I get a server-side 404...so WP doesn't seem to be catching the 404 and leaves it up to IIS to serve up the error pages. The directory isn't physically there so my server-side 404 pops up.

  19. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    Yeah, that's because wp-login.php is still loaded, I just hook into it and include your theme's 404.php or index.php (if you don't have a 404.php) and exit.

  20. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    So as long as your server intervenes when the folder (page) isn't there, this plugin won't work, nor will permalinks that aren't a query string. (have you tried changing your permalinks?)

  21. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    Another thing I didn't realise: you actually need pretty permalinks enabled for this plugin to work. So under settings > permalinks, select anything but the default. Not sure if this will work on your server, but the plugin doesn't work is default is selected.

  22. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    I've update the plugin again... Version 1.4 won't do anything if there is no permalink structure in the database.

    I'll mark this ticket as resolved, since that was the problem, but feel free to change it again if there's another problem.

  23. Nettric
    Member
    Posted 10 months ago #

    I appreciate all the time you've spent on trying to resolve this.

    I reinstalled the plugin, selected a different permalink format, saved the configuration and still the same behavior.

    No worries at the moment. There's something strange as how IIS handles these that I can't put my finger on as when I try to access my new login path, it still throws server-side 404s.

  24. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    Ah, I visited your website and you still have the default permalink structure: http://www.giantpythons.com/?p=84

  25. Nettric
    Member
    Posted 10 months ago #

    I changed everything back to default after I uninstalled the plugin. Not going to worry about it right now.

  26. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    Ok, I'm sorry the plugin didn't work for you.

  27. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 10 months ago #

    There's another topic about IIS and this plugin, maybe it could help you as well: http://wordpress.org/support/topic/404-error-on-login-page?replies=16#post-4605833

  28. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 6 months ago #

    Hello @nettric!

    I just wanted to let you know that the plugin now works with any kind of permalink structure, so you don't even need permalinks enabled. It might be worth to try it again, but only if you have time and if you are still interested of course.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.