Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9046097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:33:24+00:00 2026-06-16T11:33:24+00:00

My hosting provider does not use htaccess to enable gzip. Their support told me

  • 0

My hosting provider does not use htaccess to enable gzip. Their support told me to change my HTML file to PHP and add the following at the top:

<?php ob_start("ob_gzhandler"); ?>

However, after using gzipWTF to find out if my site is making full use of gzip, there are a number of assets listed – save only 3 – that are not being gzipped.

If you would, go to gzipWTF, and enter my URL:
“http://justinjwilson.com&#8221;.

Check ‘details’ as an option. Why is it that most of my JS and CSS files are not gzipped? An easy PHP solution would be best. Remember, I can’t use htaccess to enable gzip.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T11:33:32+00:00Added an answer on June 16, 2026 at 11:33 am

    You’re out of luck with the one-liner. Adding that line to the top of the now-PHP HTML page is going to cause PHP to handle the gzip-ing of the page content. But only that page. It has no impact on the external files, because it doesn’t process them in any way. (Separate files are separate GET requests from the browser; PHP knows nothing about them).

    So you need a solution that will allow PHP to handle the gzip-ing of all of your content. A relatively simple solution would be to write a separate PHP page that would handle the delivery of all of your external files. Something like /resource.php?r=myscript.js. This php script would have the "ob_gzhandler" turned on at the top, and then would simply open the file, and echo it out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

as the title specifies, my hosting provider does not have support for json_decode, so
My hosting provider does not have curl extension enabled by default, however, I can
Why this parameter does not pass: file.php?t=%26quot%3B%26gt%3B%0A%09%09%09%26lt Instead it gives: Forbidden You don't have
require_once does not seem to work. I am trying to use Zend libraries to
I am using shared hosting with IIS7 and support for PHP. I am trying
I setup an AppHarbor application only to find out that it does not support
My hosting provider says my python script must be made to be executable(chmod755). What
Recently our Web hosting provider moved to a medium trust level for all shared
Can anyone recommend a good hosting provider where we can host our Maven 2
My application will be hosted in a shared hosting provider with a limit of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.