# How can I change my RW File Path - to avoid manual changes on Bluehost from being overwritten on publisihing

**URL:** <https://forums.realmacsoftware.com/t/how-can-i-change-my-rw-file-path-to-avoid-manual-changes-on-bluehost-from-being-overwritten-on-publisihing/27690>\
**Category:** RapidWeaver Classic\
**Created:** [July 4, 2019, 9:14pm UTC](https://forums.realmacsoftware.com/t/how-can-i-change-my-rw-file-path-to-avoid-manual-changes-on-bluehost-from-being-overwritten-on-publisihing/27690 "2019-07-04T21:14:40Z")\
**Posts on this page:** 7\
**Page:** 2

<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:** [July 10, 2019, 11:26am UTC](https://forums.realmacsoftware.com/t/how-can-i-change-my-rw-file-path-to-avoid-manual-changes-on-bluehost-from-being-overwritten-on-publisihing/27690/21 "2019-07-10T11:26:08Z")

</div>

@Nicko,  
Just out of curiosity what are you trying to do with the htaccess file setup?

It looks like you’ve got a few strange directives in the file.

You have multiple `RewriteEngine on` Directives, only one is needed.

> [@Nicko](#):
>
> RewriteOptions inherit

If the htaccess file listed above is in your `document root` directory then There’s no need for this option so I’d remove it.

If all you’re looking to do is force https try this as your `.htaccess` file;

```RewriteEngine
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

```

---

<div class="post-metadata">

**Author:** ![Nicko](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@Nicko](https://forums.realmacsoftware.com/u/Nicko)\
**Post date:** [July 10, 2019, 12:00pm UTC](https://forums.realmacsoftware.com/t/how-can-i-change-my-rw-file-path-to-avoid-manual-changes-on-bluehost-from-being-overwritten-on-publisihing/27690/22 "2019-07-10T12:00:43Z")

</div>

Yes, it looks like things are coming together - your help was brilliant - thank you. I’m not out of the woods yet, but it looks like I’m getting close now and I’ve stopped freaking out. Really appreciate your time.

Regarding the fonts, I spent a quite a fews hours and many late nights trying to find out where insecure font was coming from and what stack it was, but in the end I gave up and just went to cloudflare. 🙂 Thanks for letting me know though - not sure what to do about it.

---

<div class="post-metadata">

**Author:** ![Nicko](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@Nicko](https://forums.realmacsoftware.com/u/Nicko)\
**Post date:** [July 10, 2019, 12:12pm UTC](https://forums.realmacsoftware.com/t/how-can-i-change-my-rw-file-path-to-avoid-manual-changes-on-bluehost-from-being-overwritten-on-publisihing/27690/23 "2019-07-10T12:12:46Z")

</div>

Hi @teefers, Thanks for that. I have had help from Adrian at sitelok over the years and this may be some of his code. Are you saying I can delete the RewriteRule and is replace with the RewriteCond?

I’ll make the changes and have saved the original htaaccess, so i can check with Adrian to see if he had it a certain way for anything. This is well out of my league. Thanks for your help - very much appreciated!!

---

<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:** [July 10, 2019, 12:20pm UTC](https://forums.realmacsoftware.com/t/how-can-i-change-my-rw-file-path-to-avoid-manual-changes-on-bluehost-from-being-overwritten-on-publisihing/27690/24 "2019-07-10T12:20:40Z")

</div>

You may need one `RewriteEngine On` At the top so the entire ht access file would look like:

```auto
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

```

This would redirect all non-https request to `https`.

---

<div class="post-metadata">

**Author:** ![Nicko](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@Nicko](https://forums.realmacsoftware.com/u/Nicko)\
**Post date:** [July 11, 2019, 12:05pm UTC](https://forums.realmacsoftware.com/t/how-can-i-change-my-rw-file-path-to-avoid-manual-changes-on-bluehost-from-being-overwritten-on-publisihing/27690/25 "2019-07-11T12:05:59Z")

</div>

Thanks @DLH and @teefers, the above seems to have worked a treat. It looks like everything is working. I still have more to check everything, but looking great so far. Thanks for you guidance!

**On a side note** :

I am getting a note after publishing saying that I have more than one index.html. Is this an issue in all cases.  
There in only one home page, but for example:  
I have a page that has a folder called beneficiaries, with a file name index.php  
another folder with transparency with file name as index.php  
Contact page in contact page folder with a file name index.html

This seemed to be the only way i can display nice looking URL’s that looks like

www.example.com.au/foldername

not

www.example.com.au/foldername/filename.html

or

www.example.com.au/foldername/filename.php

Thanks - I appreciate your time.

---

<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:** [July 11, 2019, 12:32pm UTC](https://forums.realmacsoftware.com/t/how-can-i-change-my-rw-file-path-to-avoid-manual-changes-on-bluehost-from-being-overwritten-on-publisihing/27690/26 "2019-07-11T12:32:47Z")

</div>

You get that notification when you have both an index.html and an index.php in the same directory (folder) on the hosted site.

This usually happens when you have added something to a page(a stack) that requires PHP. RapidWeaver will automaticity change the file extension to PHP for you. RapidWeaver’s publishing will NOT delete anything (a good thing) so it’s up to you to manually delete one of the two index files.

> [@Nicko](#):
>
> www.example.com.au/foldername
> 
> not
> 
> www.example.com.au/foldername/filename.html
> 
> or
> 
> www.example.com.au/foldername/filename.php

This is called “tidy links” in RapidWeaver. Web servers can if given a URL to a directory without a complete file name will look for files in a specific order like `index.html` or `index.php`. The server will display the first “index” file it finds in the order it’s looking in so having multiple index files might appear that changes you have made aren’t getting applied.

If you get that warning message you should use your hosts file manager function or a stand-alone FTP client like Transmit or FileZilla to manually delete the index.html or index.php file that’s not being used anymore. You can look at the page inspector in RapidWeaver to determine what extension (PHP or html) is being used.

---

<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:** [August 10, 2019, 10:32pm UTC](https://forums.realmacsoftware.com/t/how-can-i-change-my-rw-file-path-to-avoid-manual-changes-on-bluehost-from-being-overwritten-on-publisihing/27690/27 "2019-08-10T22:32:53Z")

</div>

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

[Previous page](https://forums.realmacsoftware.com/t/how-can-i-change-my-rw-file-path-to-avoid-manual-changes-on-bluehost-from-being-overwritten-on-publisihing/27690.md?page=1)
