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!

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:
    166
    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:
    151
    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!!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. OCX

    OCX Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    166
    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:
    402
    Likes Received:
    3
    Trophy Points:
    168
    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:
    151
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Probably a different time zone.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,483
    Likes Received:
    31
    Trophy Points:
    158
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice