firewall Spyware removal internet speed test web security service free software and tips


Go Back   Web Security > Web Site Optimization > Optimization Techniques
FAQ Members List Search Today's Posts Mark Forums Read

Optimization Techniques Ways to optimize your website so that you rank better on the search engines. Questions on how to change your site so it attacts more visitors, and other similar topics.

Advertisements

Deflate Form of Compression

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-26-2008,
Senior Member
 
Join Date: Feb 2007
Posts: 360
Default Deflate Form of Compression

Jim,
I was reading that for webhosts using apache 2.x.x and have the mod deflate enabled, you can use this command
AddOutputFilterByType DEFLATE text/html text/plain text/xml
to have the server (apache) automatically compress the html of your site.

Does the command go in the HTAccess file, and if so, where in the HTAccess file would I put it? The top line? After a certain line?

Right now my HTAccess file looks like this:

# Use PHP5CGI as default
AddHandler application/x-httpd-php5 .html .php .htm

Redirect 301 /clean.html http://www.actualcures.com/hydrogen-peroxide-ends-gingivitis-keeps-tee
....[more 301 redirects]......
ErrorDocument 400 /index.php?error=400
ErrorDocument 404 /index.php?error=404
#ErrorDocument 500
ErrorDocument 503 /index.php?error=503

RewriteEngine on
RewriteBase /

#Redirect actualcures.com to www.actualcures.com
RewriteCond %{HTTP_HOST} ^actualcures.com
RewriteRule ^(.*)$ http://www.actualcures.com/$1 [r=301,L]


# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
.
.
...etc....

Thanks Jim,

Roger
Reply With Quote
  #2 (permalink)  
Old 10-26-2008,
AMPC's Avatar
Administrator
 
Join Date: Jan 2007
Posts: 1,415
Default httpd.conf mod_deflate

Hi Roger,

The command would go in your httpd.conf, but I've never used it before, so I won't be of much help. Most likely, you'll have to have you hosting company insert that for you. Should be easy for them.

Regards,

Jim.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is .


Powered by a CPU
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.3.2 © 2009, Crawlability, Inc.