# public\_html publishing issue

**URL:** <https://forums.realmacsoftware.com/t/public-html-publishing-issue/4624>\
**Category:** RapidWeaver Classic\
**Created:** [December 17, 2015, 10:56pm UTC](https://forums.realmacsoftware.com/t/public-html-publishing-issue/4624 "2015-12-17T22:56:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brent1a](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@brent1a](https://forums.realmacsoftware.com/u/brent1a)\
**Post date:** [December 17, 2015, 10:56pm UTC](https://forums.realmacsoftware.com/t/public-html-publishing-issue/4624/1 "2015-12-17T22:56:25Z")

</div>

Just got my hosting service set up and I’m not too familiar with webservers and file structures etc. Inside the public\_html folder is an index.php placeholder file.  
I’ve uploaded my RW site to the public\_html folder and it shows up when I go to a specific page but it automatically goes to the index.php instead of my main.html page

How do I make my site automatically go to the main.html page instead of the index.php?

---

<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:** [December 17, 2015, 11:28pm UTC](https://forums.realmacsoftware.com/t/public-html-publishing-issue/4624/2 "2015-12-17T23:28:56Z")

</div>

a link would be helpful.

---

<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:** [December 17, 2015, 11:32pm UTC](https://forums.realmacsoftware.com/t/public-html-publishing-issue/4624/3 "2015-12-17T23:32:54Z")

</div>

Is your main.html called main.html? Change the name to index.html and delete the index PHP.

---

<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:** [December 17, 2015, 11:33pm UTC](https://forums.realmacsoftware.com/t/public-html-publishing-issue/4624/4 "2015-12-17T23:33:50Z")

</div>

Now, I would not go as far as @teefers and tell you to delete anything, quite yet. We need to see the issue happening before we should give advice like telling them to delete anything IMHO.

---

<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:** [December 17, 2015, 11:51pm UTC](https://forums.realmacsoftware.com/t/public-html-publishing-issue/4624/5 "2015-12-17T23:51:14Z")

</div>

You could rename it. But it was said to be a place holder page. Chances are if you publish your home page as index.html it will ignore the place holder.  
You could also try getting to the main.html file as a full name:

[Http://domainname.com/main.html](Http://domainname.com/main.html)

If you don’t specify a file name in your url it will default to index.html or index.php

---

<div class="post-metadata">

**Author:** ![barchard](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/barchard/32/2292_2.png) [@barchard](https://forums.realmacsoftware.com/u/barchard)\
**Post date:** [December 18, 2015, 2:22pm UTC](https://forums.realmacsoftware.com/t/public-html-publishing-issue/4624/6 "2015-12-18T14:22:00Z")

</div>

@brent1a index.php and index.html are special file names used by web users when you view a page with a / at the end. To view a specific file, you add this file name to the URL such as /main.html. If you want main.html to show up when you view /, you’d need to set up code for this in a .htaccess. It is, however, easier to just rename the main.html page to index and have it “just work” imho.

Greg
