Results 1 to 7 of 7

Thread: cPanel creates an empty .htaccess file that keeps coming back

  1. #1
    OCX
    OCX is offline
    Member
    Join Date
    Sep 2003
    Posts
    246

    Default

    if the htaccess file is empty theres no harm in leaving it be imho


    OCX

  2. #2
    Registered User WalstonNet's Avatar
    Join Date
    Jan 2003
    Posts
    2

    Default cPanel creates an empty .htaccess file that keeps coming back

    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. #3
    OCX
    OCX is offline
    Member
    Join Date
    Sep 2003
    Posts
    246

    Default

    ok thats odd, why did my reply go on TOP of the orginal poster?.lol

  4. #4
    Member
    Join Date
    Dec 2004
    Posts
    388

    Default

    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. #5
    Registered User WalstonNet's Avatar
    Join Date
    Jan 2003
    Posts
    2

    Default

    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. #6
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Quote Originally Posted by OCX
    ok thats odd, why did my reply go on TOP of the orginal poster?.lol
    Probably a different time zone.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  7. #7
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,773

    Default

    Quote Originally Posted by WalstonNet
    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.

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

Similar Threads

  1. restorepkg creates empty dns zone file
    By tylerl in forum cPanel & WHM Discussions
    Replies: 8
    Last Post: 09-17-2011, 04:28 AM
  2. cgi-bin keeps coming back
    By spoffle in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 06-19-2008, 12:59 PM
  3. Themes keep coming back
    By 4u123 in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 12-18-2007, 08:07 AM
  4. nobody process keeps coming back!
    By jay1228 in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-26-2007, 12:37 PM
  5. IP Addresses not coming back up?
    By ChrisHasenpflug in forum New User Questions
    Replies: 3
    Last Post: 05-13-2006, 05:25 AM