Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

How to get site front page to be the URL and not news.php

I would like my site front page to stay at the URL and not change to news.php IE:

http://www.mysite.com/ and the URL stays at that and the front page loads and not move to
http://www.mysite.com/news.php to load.

Is this possible and if so how?
Keep news.php on your server.

On your computer, rename news.php as index.php replacing the old file.

Upload your new index.php file replacing the index.php file on your server.

Goto: Administration >> Settings >> Main

Edit: Site Opening Page :: Change to: index.php :: Save

Optional: I would advise doing this if you want your domain to always look pretty.

Add/Edit .htaccess file in the root folder of the CMS (where maincore.php is located)

Inside have the following.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourwebsite\.com$
RewriteRule (.*) http://www.yourwebsite.com/$1 [R=301,L]

This will ensure that http://website.com will always be replaced as http://www.website.com
thank you NetriX for your quick reply :D

I did as you said but I have something strange happening:

http://whakapapa.maori.org.nz/index.php works fine (with the index.php on the URL) but
http://whakapapa.maori.org.nz/ looses all the middle panels except the news!

I have had a look at the panels and I don't see what I have to change to get them to show on the new front page? Help will be most appreciated :D
Hi there,

Here is my suggestion and this is what I do with my own site.

Create a home.php or whatever you want to call it.

Include your Center Panels you wish to show on the home.php page only where I have put

//include INFUSIONS."your_panel/your_panel.php";

Upload to your sites root.

Go to Admin >>> Settings >>> Main and make the opening page home.php


| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
| Filename: home.php
| Author: PHP-Fusion
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
require_once "maincore.php";
require_once THEMES."templates/header.php";
//include INFUSIONS."your_panel/your_panel.php";
require_once THEMES."templates/footer.php";

Perfect Fangree_Craig - I added the includes for the center panels to the index.php before the News code (as it was a news.php page and now I have the lot!

Thank you for your help :D
No worries man, always happy to help.

Good luck with your site.
Thread Information
6 posts
3280 times
Last Post
Last updated on 9 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Craig, NetriX, maoriorgnz