Skip to main content

How to remove extra PHP section from .htaccess

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! It doesn't look like there are any custom entries in that .htaccess file, so could you try this to empty it? cp /home/xxxx/public_html/.htaccess{,.bak-`date +%Y%m%d`} echo "" > /home/xxxx/public_html/.htaccess That first command will create a backup of the file, and the second will empty it out completely. Then you can try the PHP adjustments again and see what gets put in the file.
    0
  • vanessa
    The reason the PHP entries are being appended instead of replaced is because the first entries are for lsapi and modphp. You can easily go into File Manager or SSH and clean up this file.
    0
  • cPRex Jurassic Moderator
    Nice catch, @vanessa!!!
    0

Please sign in to leave a comment.