# Page specific .htaccess file in RapidWeaver 8

**URL:** <https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994>\
**Category:** RapidWeaver Classic\
**Created:** [February 1, 2019, 4:17pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994 "2019-02-01T16:17:26Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaacobbowden](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jaacobbowden/32/24616_2.png) [@jaacobbowden](https://forums.realmacsoftware.com/u/jaacobbowden)\
**Post date:** [February 1, 2019, 4:17pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/1 "2019-02-01T16:17:26Z")

</div>

I have a guy who is doing some editing on my website.

We found in RapidWeaver 8 how you can create and edit the file in Publishing \> Edit .htaccess File.

However, if I understand correctly, he also wants to do a page-specific .htaccess file.

Is this possible? If so, what do we need to do?

---

<div class="post-metadata">

**Author:** ![NeilUK](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/neiluk/32/23434_2.png) [@NeilUK](https://forums.realmacsoftware.com/u/NeilUK)\
**Post date:** [February 1, 2019, 4:21pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/2 "2019-02-01T16:21:58Z")

</div>

You can do a page specific .htaccess through RW8, only the master one. He would have to add specific .htaccess files in each folder on the server.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [February 1, 2019, 4:33pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/3 "2019-02-01T16:33:17Z")

</div>

> [@jaacobbowden](#):
>
> Is this possible? If so, what do we need to do?

As @NeilUK said not with RapidWeaver alone. Any _plain text_ editor will work for creating an .htaccess file. It **must be plain text** and called `.htaccess` with the dot.  
Once created you will need an ftp client such as transmit(paid) or FileZilla (free) to place the file on the server.

---

<div class="post-metadata">

**Author:** ![jaacobbowden](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jaacobbowden/32/24616_2.png) [@jaacobbowden](https://forums.realmacsoftware.com/u/jaacobbowden)\
**Post date:** [February 1, 2019, 5:32pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/4 "2019-02-01T17:32:03Z")

</div>

I have an update. He says:

“We added a code in the main .htaccess file to remove the errors in [gtmatrix.com](http://gtmatrix.com) and it worked for the home page. For the inner page the same errors are showing and I added the same .htaccess file in the folder and tested that page. But the errors are still there. It seem adding the .htaccess file didn’t work there.”

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [February 1, 2019, 5:44pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/5 "2019-02-01T17:44:48Z")

</div>

What code did he add? What are the errors?

---

<div class="post-metadata">

**Author:** ![jaacobbowden](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jaacobbowden/32/24616_2.png) [@jaacobbowden](https://forums.realmacsoftware.com/u/jaacobbowden)\
**Post date:** [February 1, 2019, 6:00pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/6 "2019-02-01T18:00:23Z")

</div>

He says these are the errors:

Enable gzip compression  
Leverage browser caching

And this is the code:

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.\* ExpiresActive On ExpiresDefault "access plus 1 seconds" # Images ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/webp "access plus 1 month" ExpiresByType image/svg+xml "access plus 1 month" ExpiresByType image/x-icon "access plus 1 month" ExpiresByType image/x-ico "access plus 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType text/css "access plus 1 month" ExpiresByType application/x-font-woff "access plus 1 year"

 ![38%20PM](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/4/4e92b28a406aeac44f5ce85d8df18876af8add37.png)

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [February 1, 2019, 6:09pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/7 "2019-02-01T18:09:04Z")

</div>

Oh boy, let me guess… an SEO “expert”?

With most hosts you can turn this on yourself right in Cpanel and choose which file types to compress.

What are you actually trying to accomplish?

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [February 1, 2019, 6:13pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/8 "2019-02-01T18:13:25Z")

</div>

What Scott(@swilliam) said.

What are you attempting to do?

Do you have a URL?

---

<div class="post-metadata">

**Author:** ![jaacobbowden](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jaacobbowden/32/24616_2.png) [@jaacobbowden](https://forums.realmacsoftware.com/u/jaacobbowden)\
**Post date:** [February 1, 2019, 6:31pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/9 "2019-02-01T18:31:32Z")

</div>

This is the URL: [About Jaacob Bowden & His History](http://jaacobbowden.com/AboutJaacob.html)

He’s inputted the URL in to [gtmetrix.com](http://gtmetrix.com) and got the following performance:

 ![35%20PM](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/d/d694f017bc77b4a8008afbb74c258b18b418ea56.png)

Using the code I had pasted above, he says he was able to resolve the “Enable gzip compression” and “Leverage browser caching” errors on the home page…but it didn’t work on the [About Jaacob Bowden & His History](http://jaacobbowden.com/AboutJaacob.html) page.

These are the drop-down details of the “Enable gzip compression”:

 ![17%20PM](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/a/aa8f5d8e42a850b5b2299cda4b80b65f1bb8425a.png)

These are the details from the “Leverage browser caching”:

 ![27%20PM](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/1/1b111c96794b98c395d65a7bd4f2eab69b69c537.png)

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [February 1, 2019, 7:04pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/10 "2019-02-01T19:04:56Z")

</div>

OK,  
Never heard of that test tool, but I just checked:

> **[About Jaacob Bowden and His History](http://jaacobbowden.com/AboutJaacob.html)**
>
> About Professional Golf Jaacob Bowden & His History

And it is showing compression (gzip) is on.

Also, rain a [speed test](https://www.webpagetest.org/result/190201_9E_fca90a639dd48ca10fb8f25d8c6e61f0/) and it shows it turned on as well, not to mention the pages are quite light in wieght.

I don’t think I would have turned gzip on that way unless that was the only way. As Scott pointed out there is usually an easier way in the cPanel, normally under something like **Website Optimization** icon on cPanel.

There’s also usually some sort of “Cache Manager” option to setup cache expiry info.

You didn’t say who your hosting company is, so I don’t know what options you might have.

And of course, you could set up a CloudFlare account and that would take care of both those issues and more.

---

<div class="post-metadata">

**Author:** ![jaacobbowden](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jaacobbowden/32/24616_2.png) [@jaacobbowden](https://forums.realmacsoftware.com/u/jaacobbowden)\
**Post date:** [February 1, 2019, 7:53pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/11 "2019-02-01T19:53:37Z")

</div>

Thank you. I will pass the word on to him.

The hosting company is InMotion Hosting:

[https://www.inmotionhosting.com/](https://www.inmotionhosting.com/)

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [February 1, 2019, 8:03pm UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/12 "2019-02-01T20:03:57Z")

</div>

Just looked at their(in motion) support area:

gzip:  
[https://www.inmotionhosting.com/support/website/what-is/how-to-enable-gzip-moddeflate](https://www.inmotionhosting.com/support/website/what-is/how-to-enable-gzip-moddeflate)

look for the part headlined:

### Enabling mod\_deflate (gzip compression) in cPanel

I didn’t look up cache management, but they have a serach in that support area.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [March 4, 2019, 6:04am UTC](https://forums.realmacsoftware.com/t/page-specific-htaccess-file-in-rapidweaver-8/24994/13 "2019-03-04T06:04:02Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
