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 in /home/username ???

Discussion in 'General Discussion' started by shannon, Oct 1, 2008.

  1. shannon

    shannon Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Maybe I'm just remembering incorrectly, but I don't think I've ever seen an .htaccess file in /home/username affect the web contents in /home/username/public_html before. But right now I see that it is, atleast for one client on our systems.

    I thought the .htaccess file belonged in public_html to protect anything in there and below it. (I know the .htaccess settings filter *down* from public_html into subfolders if there is no .htaccess in those subfolders).. but an .htaccess in /home/username? Am I mistaken and it's always worked like this, or has this recently changed?
     
  2. E3sarcom

    E3sarcom Registered

    Joined:
    Dec 8, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Some clients used an .htaccess file in /home/username to exceed the uplading file size !
    They writing in it this code :
    PHP:
    php_value upload_max_filesize "10M" 
    The value "10M" may changed by the user as he wants :rolleyes:

    So check the contents of the .htaccess in /home/username .


    thank you.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The closer to / the .htaccess file is, the higher precedence is given its contents. cPanel in particular uses ~/.htaccess for a few things. Setting the specific PHP handler for the account, for example.
     
Loading...

Share This Page