1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

.htacess file in wp-admin causes an error

Discussion in 'WordPress' started by links4rank, Jul 9, 2012.

  1. #1
    Hi, all,

    I put .htacess file in wp-admin

    order deny,allow
    allow from a.b.c.d # This is your static IP
    deny from all

    But causes an error:

    What maybe the problems ?

    Thanks in advance!
     
    links4rank, Jul 9, 2012 IP
  2. links4rank

    links4rank Well-Known Member

    Messages:
    311
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #2
    I want to use cpanel to protect wp-admin folder. It has the same problem.

    Anyone know the reasons ? I just coped it from another server.
     
    links4rank, Jul 9, 2012 IP
  3. ashishkg

    ashishkg Active Member

    Messages:
    233
    Likes Received:
    8
    Best Answers:
    3
    Trophy Points:
    68
    #3
    Hello

    Try this
    <Files wp-login.php>
    Order Deny,Allow
    Deny from all
    Allow from xx.xx.xx.xx
    </Files>

    OR

    <Files wp-login.php>
    Order Deny,Allow
    Deny from all
    Allow from xx.xx.xx.xx
    </Files>

    This help you...
    Thanks
     
    ashishkg, Jul 9, 2012 IP
  4. links4rank

    links4rank Well-Known Member

    Messages:
    311
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #4
    Thanks for you reply.

    My ISP changed my IP and I blocked myself.
     
    links4rank, Jul 10, 2012 IP
  5. ashishkg

    ashishkg Active Member

    Messages:
    233
    Likes Received:
    8
    Best Answers:
    3
    Trophy Points:
    68
    #5
    good and good luck....
     
    ashishkg, Jul 10, 2012 IP