WordPress.org

Support

Support » Miscellaneous » protecting the admin folder

protecting the admin folder

  • tommytomato
    Member

    @tommytomato

    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

Viewing 9 replies - 1 through 9 (of 9 total)
  • no. that’s what I do, and mine works fine.

    tommytomato
    Member

    @tommytomato

    Thank you garbonzo

    TT

    tommytomato
    Member

    @tommytomato

    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

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

    tommytomato
    Member

    @tommytomato

    what ? lost me !

    dont quiet get what you mean.

    TT

    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.

    Samuel B
    Participant

    @samboll

    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*"

    tommytomato
    Member

    @tommytomato

    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

    tommytomato
    Member

    @tommytomato

    Any idea to why this is happing ?

    TT

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘protecting the admin folder’ is closed to new replies.