Skip to main content

Bypass local user from Global .htaccess

Comments

4 comments

  • cPanelMichael
    Hello :) Which specific entry in the .htaccess file are you attempting to add? Have you tried adding the entry to see if it fails? Thank you.
    0
  • syslint
    What type of caching mechanism are you using ? Is it nginx, php or other proxy ?
    0
  • Rizwan Ghzzaal
    We are using php mechanism. Please find below code in our .htaccess file which is placed in our home partition:
    # BEGIN Cache-Control Headers Header set Cache-Control "max-age=2592000, public" Header set Cache-Control "max-age=604800, public" Header set Cache-Control "max-age=216000, private" Header set Cache-Control "max-age=600, private, must-revalidate" # END Cache-Control Headers mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* Header unset ETag FileETag None Header unset Last-Modified Header set Connection keep-alive
    What if a user wants to bypass a certain domain? Best Regards, Rizwan.
    0
  • 0

Please sign in to leave a comment.