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 question

Discussion in 'General Discussion' started by serlex, Jun 6, 2011.

  1. serlex

    serlex Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    If I've got the compress all content switch enabled via cPanel can I assume
    the following lines in the web site's .htaccess file are redundant?

    <IfModule mod_deflate.c>

    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml
    text/css application/x-javascript application/javascript

    </IfModule>
     
  2. serlex

    serlex Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Anyone would like to take a guess?
     
  3. 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
    Normally, the mod_deflate settings are placed into /home/username/.htaccess on the account when you setup the options in cPanel > Optimize Website area. If you are talking about removing those entries in /home/username/.htaccess, then those are not redundant as that is how cPanel sets mod_deflate to function. If you have personally put content yourself into /home/username/public_html/.htaccess and you find the same content exists in /home/username/.htaccess, then yes you can remove the duplicate content in public_html's .htaccess file.
     
Loading...

Share This Page