I have a question that I believe best fits here... It’s PN related but not rely a support ishue.
I volunteered to do a new site for a local organization and am not planing on having it finished for a while. It is on a new server with new URL and is WORKING. What I am looking to do is have a way to display a static HTML page (no PostNuke content) as the index. Is there an EASY way to do this with out having to redo the directory structure, and put PN in it’s own directory? (Don’t want to move it again when ready to go live)
What do you guys do in this situation?
Thanks,
Mark
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Site in construction... Index?
-
- Rank: Softmore
- Registered: Nov 21, 2004
- Last visit: Oct 21, 2009
- Posts: 290
-
- Rank: Developer
- Registered: Jun 03, 2002
- Last visit: Dec 21, 2009
- Posts: 284
Most servers I've worked with are set up to use index.html first, then index.php if .html is not there. Check to see if that's how your's is setup, then put the static in the index.html.
--
cyber_wolf
www.bkbsolutions.com - My Zikula module development site. -
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
You can also install postnuke in a directory of the root of the site then move over the files when ready - all urls called in postnuke are relative so it will work when you move the files.
-Lobos
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment -
- Rank: Expert
- Registered: Mar 11, 2003
- Last visit: Oct 21, 2009
- Posts: 1104
You can do as Lobos suggests and keep a copy of your website in a subdirectory for ongoing development. It'll use the same database so take care not to do anything too experimental but for minor tweaks it's nice to have an offsite that's onsite...if you catch my drift.
Slugger -
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
Slugger
You can do as Lobos suggests and keep a copy of your website in a subdirectory for ongoing development. It'll use the same database so take care not to do anything too experimental but for minor tweaks it's nice to have an offsite that's onsite...if you catch my drift.
Slugger
Just be careful with module stuff, like installing new modules ie if you install a module on one instance of postnuke and access your modules on the other instance the module will be turned off...
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment -
- Rank: Softmore
- Registered: Nov 21, 2004
- Last visit: Oct 21, 2009
- Posts: 290
Quote
Most servers I've worked with are set up to use index.html first, then index.php if .html is not there. Check to see if that's how your's is setup, then put the static in the index.html.
I already gave this a go, but it aperies that my server gives the priority tp PHP, I am waiting for an answer from the hosting company to see if this can be changed.
As far as putting it in the sub directory; I just moved it out of one :?
It is a new site and I have not mentioned the address to anyone yet, so I will probably just take keep it as is, so I know it is working correctly when it’s time to go live! (When I tell them it exists!)
Ok here is a idea...
I am thinking that this might cause a problem so I am running it by all of you first. Can I change the name of the "index.php" to something like "index2.php" ?
Does Nuke care what this file is named or just my server? -
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
[quote="new_to_this"]Quote
Ok here is a idea...
I am thinking that this might cause a problem so I am running it by all of you first. Can I change the name of the "index.php" to something like "index2.php" ?
Does Nuke care what this file is named or just my server?
LOL yes it does care, look up at the URL in your browser and you will see index.php?name=...
There is nothing you can really do but use either the HTML or copy it to another dir.
-Lobos
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment -
- Rank: Helper
- Registered: Mar 30, 2003
- Last visit: Oct 21, 2009
- Posts: 683
Quote
I already gave this a go, but it aperies that my server gives the priority tp PHP, I am waiting for an answer from the hosting company to see if this can be changed.
When my host http://www.coastlandtech.com upgraded PHP recently my experimental site which had index.html and index.php suddenly changed and now displays the postnuke site. I'm gathering that's now the preferred priority. -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
Assuming you're on an Apache server, you can over-ride the default setup in an .htaccess file. I belive it's the DirectoryIndex directive.
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Softmore
- Registered: Nov 21, 2004
- Last visit: Oct 21, 2009
- Posts: 290
Thanks Lobos,
I kinda thought it would but figured asking couldn’t hurt.
Ok I have spoken with my hosting company (dam good service!) and changing the priority from PHP to HTML is a pain. (they say, and it is an Apache server)
They also recommended that I just put it in a new directory, and when I wanted to go live e-mail them and ask them to go public with the directory. They will then command line the directory to merge withe the public_html an off it goes! (I usually here back from these guys in about 10min. with e-mail!) -
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
new_to_this
(I usually here back from these guys in about 10min. with e-mail!)
Well do tell us who they are! There are always people around here looking for good webhosts :)
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment -
- Rank: Softmore
- Registered: Nov 21, 2004
- Last visit: Oct 21, 2009
- Posts: 290
American Internet aka, amhosting
They have a good price and VERRY GOOD support!
Still a small company that cares aabout there customers!
there website is http://www.amhosting.com -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
AMHosting was the last host I used prior to moving to a reseller account due to volume of sites I needed to host. Ryan was always pretty helpful and fast.
--
Home Page | Find on Facebook | Follow on Twitter
- Moderated by:
- Support
