WordPress.org

Ready to get started?Download WordPress

Forums

Stealth Login with WordPress in its own directory (5 posts)

  1. nyoungman
    Member
    Posted 5 years ago #

    skillbit,

    Stealth Login isn't quite working right with the "Giving WordPress Its Own Directory"
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    I have:
    Wordpress Address: http://mysite.com/wordpress
    Blog Address: http://mysite.com

    RewriteRule ^logout wp-login.php?action=logout [L]
    RewriteRule ^login wp-login.php?&redirect_to=http://mysite.com/wordpress/wp-login.php?redirect_to=http://mysite.com [R,L]
    RewriteRule ^register wp-login.php?action=register [L]

    should be

    RewriteRule ^logout /wordpress/wp-login.php?action=logout [L]
    RewriteRule ^login /wordpress/wp-login.php?redirect_to=http://mysite.com [R,L]
    RewriteRule ^register /wordpress/wp-login.php?action=register [L]

    Notice also that a Login Redirect of Blog Address had 2 redirect_to's.

    as huwr mentioned on another thread, it would also be nice if the login links changed too... via the loginout and register filters. i.e. i would like the login link on the register screen to include the redirect_to parameter.

    Thanks!
    - nathan

  2. nyoungman
    Member
    Posted 5 years ago #

    It doesn't seem like there is any good way to get WordPress to consistiently redirect_to the page I want, short of modifying the default right in the core code. :-(

  3. devbit
    Member
    Posted 5 years ago #

    Version 1.3 should allow you to use the redirects when you're WordPress is installed in a sub-directory. Let me know.

  4. nyoungman
    Member
    Posted 5 years ago #

    Hi, thanks for the update. What I ended up doing for that web site was to just use a tweaked version of what Stealth Login created and then deactivate Stealth Login. I also
    managed to get another type of redirection working for specific users:
    http://nathany.com/developer/redirecting-wordpress-subscribers/

    I have since moved on, for the site I am currently working on I have had to become more familiar with Apache rewrite rules, as there is a lot of different redirection going on based on referrers and all sorts of things.

    Thanks for updating Stealth Login though, to the benefit of everyone who uses it. I can't promise that I'll check it out myself, but I will keep it in mind. Cheers.

  5. gametalents
    Member
    Posted 5 years ago #

    Hello,

    My configuration is a little bit trickier :

    I have a subdomain + given WordPress "it's own directory"

    My subdomain can only be set via the interface of my webhost this way :
    http://blog.mydomain.com redirects to http://www.mydomain.com/blog/

    Then, I installed WP into :
    http://www.mydomain.com/blog/___directory_for_wordpress

    So I have :
    Wordpress address = http://blog.mydomain.com/___directory_for_wordpress/
    Blog address = http://blog.mydomain.com

    I am trying to make Stealth Login work with that, but it won't understand that the prefix (blog.) matters.

    I would like to type :
    http://blog.mydomain.com/login
    and have it point to :
    http://blog.mydomain.com/___directory_for_wordpress/wp-login.php

    Did I make myself clear enough ?

    I am not strong enough with URL rewriting, but I am trying to hack a solution anyway.
    If I find it, I'll post it here.

Topic Closed

This topic has been closed to new replies.

About this Topic