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.

cPanel creates an empty .htaccess file that keeps coming back

Discussion in 'General Discussion' started by OCX, Aug 4, 2005.

  1. OCX

    OCX Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
    if the htaccess file is empty theres no harm in leaving it be imho


    OCX
     
  2. WalstonNet

    WalstonNet Registered

    Joined:
    Jan 23, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel keeps creating an empty .htaccess file on all of the hosting accounts on my server (datacenter reseller). If you delete the .htaccess file via ftp or via cPanel's file manager, it just keeps coming back, no matter how many times you delete it.

    I have asked my host about this, and they say they don't know how to fix it. I think there's a fix for it, unless it's a bug in the latest version, because on my old host this didn't happen (I switched hosts about a year ago), unless you did something that warranted cPanel creating an .htaccess file. But ever since I've been with this new host, cPanel creates empty .htaccess files in the public_html/www directory for no reason on all of my accounts, and I can delete them until I'm blue in the face, but they just keep coming back.

    Does anyone know how to stop cPanel from creating these empty .htaccess files? Any help would be greatly appreciated.

    Thanks!!!
     
  3. OCX

    OCX Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
    ok thats odd, why did my reply go on TOP of the orginal poster?.lol
     
  4. abubin

    abubin Well-Known Member

    Joined:
    Dec 7, 2004
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    what's wrong with a blank .htaccess file? If it's blank, it doesn't do any harm. Since it starts with . (dot) it will be hidden in folder view and ftp unless you specifically look for hidden files which also does no damage as it's blank.
     
  5. WalstonNet

    WalstonNet Registered

    Joined:
    Jan 23, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I don't know why it went to the top, that was weird, LOL!

    I know it's ok to leave there, but you know those little things that bug you? That's one of those things for me, it just bugs me. Never having it, and then always having it, it's just one of those little things that bug me and if there's a way to stop cpanel from creating it, I'd like to do it.
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Probably a different time zone.
     
  7. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider

    There isn't a way to disable. It works around some other problems, mostly frontpage bugs.
     
Loading...

Share This Page