Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress htaccess overwritten

Discussion in 'General Discussion' started by vicentbeneito, Mar 28, 2017.

Tags:
  1. vicentbeneito

    vicentbeneito Registered

    Joined:
    Mar 28, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    valencia
    cPanel Access Level:
    Website Owner
    Hello
    I find the .htaccess file on my website overwritten with a code like this:

    AuthType Basic
    AuthName "web"
    AuthUserFile "/home/user/.htpasswds/public_html/passwd"
    require valid-user
    The site is made in wordpress, the last version and including a security plugin (ithemes security) that avoid file changes...

    What can be happening? Could some plugin make these changes?

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The entries you provided are added to the .htaccess file when the "Directory Privacy" feature is enabled in cPanel, or when someone manually adds the entry to password protect the directory. However, the "Directory Privacy" feature should not erase the existing entries in the .htaccess file. I recommend contacting your web hosting provider for additional assistance if that happened on your account and you are unsure of the cause.

    Thank you.
     
Loading...

Share This Page