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.

.htaccess regeneration

Discussion in 'General Discussion' started by cmuench333, Apr 27, 2011.

  1. cmuench333

    cmuench333 Member

    Joined:
    Apr 27, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    It seems whenever I delete /home/ACCOUNT/public_html/.htaccess, it always regenerates a new empty one. Why does this happen?
     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Do you have a WP blog or something installed on this public_html.

     
  3. cmuench333

    cmuench333 Member

    Joined:
    Apr 27, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Nope just one file that says coming soon. It usually takes 1-2 days for the file to come back.
     
  4. cmuench333

    cmuench333 Member

    Joined:
    Apr 27, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I should also note there is suspended.page folder and moving.page folder
     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Is this a reseller account that controls other accounts under that reseller? Normally, I've seen suspended.page and moving.page folders for a reseller user.
     
  6. cmuench333

    cmuench333 Member

    Joined:
    Apr 27, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    It was a reseller account at one point but isn't now. I don't think I need those files any more. But my question is: is it normal forc.htaccess to regenerate on it's own?
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I removed the .htaccess file on an account and re-ran a forced /scripts/upcp --force to see the results. The .htaccess file did not regenerate. I tested using a reseller and a non-reseller account.

    Do you have any idea what process would be triggering the regeneration or exactly how frequently it reforms? Unless I can reproduce it happening on my machine, I cannot state why it is happening unfortunately.
     
  8. cmuench333

    cmuench333 Member

    Joined:
    Apr 27, 2011
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    My host figured it out for me. If you access the site with the file manager the .htaccess file gets created!
     
Loading...

Share This Page