WordPress.org

Ready to get started?Download WordPress

Forums

protecting the admin folder (10 posts)

  1. tommytomato
    Member
    Posted 8 years ago #

    Hi all

    I run Linux here as a server, I know it faily well
    just wondering on protecting the admin folder called
    "wp-admin"

    If I password protect the Directory would this cause any problems to word press ?

    TT

  2. garbonzo
    Member
    Posted 8 years ago #

    no. that's what I do, and mine works fine.

  3. tommytomato
    Member
    Posted 8 years ago #

    Thank you garbonzo

    TT

  4. tommytomato
    Member
    Posted 8 years ago #

    garbonzo

    I protected the folder ok, works ok, but if you click the cancel button, it still throws you to a text only login page.?

    httpd started ok after editing httpd_config file

    TT

  5. maerk
    Member
    Posted 8 years ago #

    The CSS file for your login page is in wp-admin.

  6. tommytomato
    Member
    Posted 8 years ago #

    what ? lost me !

    dont quiet get what you mean.

    TT

  7. maerk
    Member
    Posted 8 years ago #

    Oh right, well CSS is the language used on webpages to set things like font colours and borders and background images -- basically everything to do with the graphic design of pages. It takes over from stuff like the <font> tag and using tables for layout.

    The great thing about CSS is that you can use one file to reference many pages, so to change the layout and look of a site, you only have to change one file!

    The CSS file that controls the look of all the wordpress admin pages, including the login page, is located in the wp-admin directory, which you've just placed behind a password ;)

    Therefore the CSS file isn't being applied to the login page.

  8. Samuel B
    moderator
    Posted 8 years ago #

    See if this won't work for you.
    Put this in your .htaccess above the WP statements - at the top:
    RewriteCond %{REQUEST_URI} ".*wp-admin*"

  9. tommytomato
    Member
    Posted 8 years ago #

    what I should have said is why dont I get a 401 message if I press the cancel button, instead I still get a very basic login page ( with out images )

    I would normaly get this message if I press the cancel button.

    Authorization Required
    This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

    RewriteCond %{REQUEST_URI} ".*wp-admin*"
    this takes away the login box

    TT

  10. tommytomato
    Member
    Posted 8 years ago #

    Any idea to why this is happing ?

    TT

Topic Closed

This topic has been closed to new replies.

About this Topic