# No Index.html file on publish to local host

**URL:** <https://forums.realmacsoftware.com/t/no-index-html-file-on-publish-to-local-host/27924>\
**Category:** RapidWeaver Classic\
**Created:** [July 19, 2019, 9:42am UTC](https://forums.realmacsoftware.com/t/no-index-html-file-on-publish-to-local-host/27924 "2019-07-19T09:42:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Out](https://avatars.discourse-cdn.com/v4/letter/o/8491ac/32.png) [@Out](https://forums.realmacsoftware.com/u/Out)\
**Post date:** [July 19, 2019, 9:42am UTC](https://forums.realmacsoftware.com/t/no-index-html-file-on-publish-to-local-host/27924/1 "2019-07-19T09:42:37Z")

</div>

HI

RW 8.2.1 Stacks 3.6.6 foundry 1.3.4.2

On Publish to Local folder all files published however there is no Index.html file only an index.php file.

Is this correct behaviour?

If so, how do I view the published site locally?

This is my first site so there is a possibility I have overlooked something very basic.  
I have searched the forum and not found anything relevant.  
thanks  
Out

---

<div class="post-metadata">

**Author:** ![Out](https://avatars.discourse-cdn.com/v4/letter/o/8491ac/32.png) [@Out](https://forums.realmacsoftware.com/u/Out)\
**Post date:** [July 19, 2019, 9:59am UTC](https://forums.realmacsoftware.com/t/no-index-html-file-on-publish-to-local-host/27924/2 "2019-07-19T09:59:53Z")

</div>

UPDATE:

I was creating a one page site and had included a foundry form stack. This changed the index file to php.

I have made a second page with the form on it. And now I have a Index.html file. Kinda breaks the design though.

If I publish the site to a web server will the index.php file work there?

thanks  
Out

---

<div class="post-metadata">

**Author:** ![peterdanckwerts](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/peterdanckwerts/32/22443_2.png) [@peterdanckwerts](https://forums.realmacsoftware.com/u/peterdanckwerts)\
**Post date:** [July 19, 2019, 10:47am UTC](https://forums.realmacsoftware.com/t/no-index-html-file-on-publish-to-local-host/27924/3 "2019-07-19T10:47:31Z")

</div>

What you must avoid is having both an index.php and an index.html file in the same directory. You may have to use an FTP program to remove an unwanted page. Most form stacks force the use of php because this is used to protect your contact details. As long as your hosting company has a compatible version of php running, all should be fine.

---

<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 19, 2019, 12:40pm UTC](https://forums.realmacsoftware.com/t/no-index-html-file-on-publish-to-local-host/27924/4 "2019-07-19T12:40:24Z")

</div>

> [@Out](#):
>
> Is this correct behaviour?

Yes something on the page requires PHP.

> [@Out](#):
>
> If so, how do I view the published site locally?

Web pages are designed to be “served” by a web server.  
RapidWeaver has a built in web server, so you can easily right click on the page in the left sidebar and choose “preview with” and choose any browser you have installed on your mac.

If you want more control for local testing a site then you’ll need to install something like [MAMP](https://www.mamp.info/en/). MAMP actually runs industry standard full blown web server (Apache), database(mySQL) and PHP locally on your Mac. That way you can emulate the hosting company environment including the version of PHP. There’s both paid(pro) and free versions of MAMP. The free version will work fine for testing on the mac itself, the pro version allows you to test with any device on your local network like iPhones, iPads, androids and Windows machines.

> [@Out](#):
>
> If I publish the site to a web server will the index.php file work there?

Assuming the web hosting company plan supports PHP yes it will. Most all do but there’re a few out there that don’t.

---

<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 18, 2019, 10:40pm UTC](https://forums.realmacsoftware.com/t/no-index-html-file-on-publish-to-local-host/27924/5 "2019-08-18T22:40:30Z")

</div>

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