Home Forums WordPress Plugins Hide My WP Locked Out … :(

This topic is: not resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4691
    ssc
    Post count: 3

    Hi –

    I’m working on a development site and was trying to make it so that the ‘wp-admin’ would be switched…And I locked myself out like the warnings warned about…

    In my wp-config.php file I made the change to:
    define("ADMIN_COOKIE_PATH", "/new-admin");

    and in the .htaccess I put the line you asked me to put in above the line that ends with “!-f” (I can include the htaccess I’m working with in a private reply.)

    Also – while I have you ‘on the line’ can you tell me how to, via htaccess, force ALL users to get directed to the ‘https://www.’ version every time for every page?

    Thanks for your help!
    I’ll be waiting my by my email box so I can get back in there and get to work.

    Thanks again!!!!
    -Chad

    #4692
    ssc
    Post count: 3
    This reply has been marked as private.
    #4693
    ssc
    Post count: 3
    This reply has been marked as private.
    #4694
    ssc
    Post count: 3

    Please disregard the lock out issue – I have somehow fixed the issue….???

    Everything is working with the exception of making sure that all users (Google really for duplicate content issues) are forced to ‘https://wwww.’ version. (I’m aware of the increase in loading times and am OK with it)

    Can you still tell me how to do this please?

    Thank You!!!

    #4704
    Suman M.
    Post count: 12480

    Hi, to force https, you’ll need to add following in your htaccess file (add it at the end of file)

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>

    • This reply was modified 9 years, 9 months ago by Suman M..
    • This reply was modified 9 years, 9 months ago by Suman M..
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.