Skip to main content

.htaccess permissions

Comments

3 comments

  • cPanelPeter cPanel Staff
    Hello, Do you have shell access? If so, you can type: chmod 644 .htaccess
    at the command prompt. As for why it is being changed/replaced and permissions set back to 755, that's going to require an investigation.
    0
  • cPanelMichael
    Hello :) You can try modifying the permissions via SSH if you have access. Otherwise, please consult with your web hosting provider to have them complete this for you. cPanel will not automatically modify the permissions of the .htaccess file. It seems like you have a third-party script that is making this change, or your hosting provider has a third-party application making the change. Thank you.
    0
  • SteveRyland
    Thank you for the quick replies. I will access using SSH then and see if I can resolve the problem. I have also contacted my hosting provider as I believe it is a wordpress plugin that may be altering this file.
    0

Please sign in to leave a comment.