# .htaccess file help and or issues

**URL:** <https://forums.realmacsoftware.com/t/htaccess-file-help-and-or-issues/590>\
**Category:** RapidWeaver Classic\
**Created:** [July 21, 2015, 8:48pm UTC](https://forums.realmacsoftware.com/t/htaccess-file-help-and-or-issues/590 "2015-07-21T20:48:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tankgryl](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tankgryl](https://forums.realmacsoftware.com/u/tankgryl)\
**Post date:** [July 21, 2015, 8:48pm UTC](https://forums.realmacsoftware.com/t/htaccess-file-help-and-or-issues/590/1 "2015-07-21T20:48:22Z")

</div>

Its a case of a little bit of information is a dangerous thing. I run speed test on the site and i always get issues with compression gzip. So well i play around, and then i forget or go back in a couple of months and do it again.  
I have watch Joe Workman’s great podcasts on .htaccess but at this point i think i am in over my head as i have added to much and i am worried about deleting - i know i have double code in there.  
Could someone have a quick look for me?

This is the full .htaccess file:

 Header append Vary User-Agent env=!dont-vary AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json # DEFLATE by extension AddOutputFilter DEFLATE js css htm html xml 
# Disable Directory Access

Options -Indexes

# Expire times for caching

```
ExpiresActive on
ExpiresDefault "access plus 1 month"

```

# CSS

```
ExpiresByType text/css "access plus 1 year"

```

# Data interchange

```
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"

```

# Favicon (cannot be renamed!) and cursor images

```
ExpiresByType image/x-icon "access plus 1 week"

```

# HTML components (HTCs)

```
ExpiresByType text/x-component "access plus 1 month"

```

# HTML

```
ExpiresByType text/html "access plus 0 seconds"

```

# JavaScript

```
ExpiresByType application/javascript "access plus 1 year"

```

# Manifest files

```
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
ExpiresByType text/cache-manifest "access plus 0 seconds"

```

# Media

```
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"

```

# Web feeds

```
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"

```

# Web fonts

```
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"

```

```
<IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE application/atom+xml \
                                  application/javascript \
                                  application/json \
                                  application/rss+xml \
                                  application/vnd.ms-fontobject \
                                  application/x-font-ttf \
                                  application/x-web-app-manifest+json \
                                  application/xhtml+xml \
                                  application/xml \
                                  font/opentype \
                                  image/svg+xml \
                                  image/x-icon \
                                  text/css \
                                  text/html \
                                  text/plain \
                                  text/x-component \
                                  text/xml
</IfModule>

```

## BEGIN GZIP
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript ## END GZIP ## Header append Vary: Accept-Encoding 
# Compression with gzip
 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.\*
# secure htaccess file

\<Files .htaccess\>  
order allow,deny  
deny from all

---

<div class="post-metadata">

**Author:** ![Rovertek](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rovertek/32/223_2.png) [@Rovertek](https://forums.realmacsoftware.com/u/Rovertek)\
**Post date:** [July 30, 2015, 8:08pm UTC](https://forums.realmacsoftware.com/t/htaccess-file-help-and-or-issues/590/2 "2015-07-30T20:08:08Z")

</div>

> [@tankgryl](#):
>
> I have watch Joe Workman’s great podcasts on .htaccess

Sorry, man, I don’t have an answer for you. But, perhaps you could post the link to that podcast on .htaccess? That is something I am interested in.

---

<div class="post-metadata">

**Author:** ![zeebe](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/zeebe/32/22007_2.png) [@zeebe](https://forums.realmacsoftware.com/u/zeebe)\
**Post date:** [July 30, 2015, 8:16pm UTC](https://forums.realmacsoftware.com/t/htaccess-file-help-and-or-issues/590/3 "2015-07-30T20:16:43Z")

</div>

Here you go, to weaver casts

> **[Home - Weaver's Space Community](https://community.weavers.space/)**
>
> Premium online community for web designers using Stacks for Mac.

and

> **[Home - Weaver's Space Community](https://community.weavers.space/)**
>
> Premium online community for web designers using Stacks for Mac.

---

<div class="post-metadata">

**Author:** ![Rovertek](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rovertek/32/223_2.png) [@Rovertek](https://forums.realmacsoftware.com/u/Rovertek)\
**Post date:** [July 30, 2015, 9:04pm UTC](https://forums.realmacsoftware.com/t/htaccess-file-help-and-or-issues/590/4 "2015-07-30T21:04:01Z")

</div>

@zeebe – Thanks a lot.

---

<div class="post-metadata">

**Author:** ![MarkSealey](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/marksealey/32/22895_2.png) [@MarkSealey](https://forums.realmacsoftware.com/u/MarkSealey)\
**Post date:** [August 1, 2015, 4:22am UTC](https://forums.realmacsoftware.com/t/htaccess-file-help-and-or-issues/590/5 "2015-08-01T04:22:42Z")

</div>

The .htaccess file is a set of parameters which the web server Apache uses to control the way it serves pages.

(It’s always a good idea to make a backup - perhaps calling it SAFEdothtaccess - before you begin; Apache only looks for that one file, ‘hatches’ so it’s safe to make such a copy.)

One thing you could do is search online for a ‘clean’ .htaccess file - one which has not been customised as you have customised yours - and drop it in instead of the one you’ve changed; and start from there.

Good luck!

---

<div class="post-metadata">

**Author:** ![tankgryl](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tankgryl](https://forums.realmacsoftware.com/u/tankgryl)\
**Post date:** [September 4, 2015, 12:58am UTC](https://forums.realmacsoftware.com/t/htaccess-file-help-and-or-issues/590/6 "2015-09-04T00:58:30Z")

</div>

good point Mark, thanks

---

<div class="post-metadata">

**Author:** ![tankgryl](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tankgryl](https://forums.realmacsoftware.com/u/tankgryl)\
**Post date:** [September 4, 2015, 12:59am UTC](https://forums.realmacsoftware.com/t/htaccess-file-help-and-or-issues/590/7 "2015-09-04T00:59:10Z")

</div>

i have looked at them… and thats where i got most of my fillers for the .htlaccess file i have

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [August 12, 2026, 8:16pm UTC](https://forums.realmacsoftware.com/t/htaccess-file-help-and-or-issues/590/8 "2026-08-12T20:16:17Z")

</div>

Unlisted on August 12, 2026, 8:16pm UTC


