Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Define default homepage

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  htaccess to prevent hijacking programs?  
Author Message
mike.novecento

External


Since: Sep 18, 2005
Posts: 1



(Msg. 1) Posted: Sun Sep 18, 2005 2:09 pm
Post subject: Define default homepage
Archived from groups: alt>www>webmaster (more info?)

I use Plesk 10. My site has both an index.php page and a default.php
page in the same main folder. Where can I define what page I want to be
exectuted when somebody clicks on www.mywebsite.com? I mean, I want to
know how to define that mypage.php will execute as default instead of
index.php (for example).

Thanks.
Mike

 >> Stay informed about: Define default homepage 
Back to top
Login to vote
Mike Novecento

External


Since: Sep 18, 2005
Posts: 3



(Msg. 2) Posted: Sun Sep 18, 2005 2:19 pm
Post subject: Re: Define default homepage [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

mywebsite.com was just an example... sorry about the confusion...

For a series of reasons, I unfortunately have both an index.php and a
default.php... and I can't change it without spending hours and hours
of time.

Do you know how to define which one I want?


I use Plesk, Apache, Linux.

 >> Stay informed about: Define default homepage 
Back to top
Login to vote
Mike Novecento

External


Since: Sep 18, 2005
Posts: 3



(Msg. 3) Posted: Sun Sep 18, 2005 2:37 pm
Post subject: Re: Define default homepage [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you guys. I actually found a brilliant way to resolve it through
php redirection.

Thanks.Mike
 >> Stay informed about: Define default homepage 
Back to top
Login to vote
Kim_André_Akerĝ

External


Since: Jun 29, 2005
Posts: 88



(Msg. 4) Posted: Mon Sep 19, 2005 11:55 pm
Post subject: Re: Define default homepage [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike Novecento wrote:

> Thank you guys. I actually found a brilliant way to resolve it through
> php redirection.

If you're using Apache as your web server, you can also use the
DirectoryIndex directive, either in the main server configuration or in
an .htaccess file (provided that this type of directive can be
overridden).

From your example, .htaccess in your HTML root directory will contain:

DirectoryIndex mypage.php

That way, mypage.php will be opened when the user opens www.example.com/

--
Kim André Akerĝ
- kimandre.TakeThisOut@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
 >> Stay informed about: Define default homepage 
Back to top
Login to vote
Mike Novecento

External


Since: Sep 18, 2005
Posts: 3



(Msg. 5) Posted: Tue Sep 20, 2005 12:55 am
Post subject: Re: Define default homepage [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Kim, that's the answer I was looking for.

Thanks.
 >> Stay informed about: Define default homepage 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
set as homepage in flash - does anyone know how to make "set as homepage button" in flash??

customizeable homepage script - Does anyone know where to find any scripts that do customization-type pages, something like what you might see at http://my.yahoo.com/ Thanks, Ike

Homepage Links to 3rd Level Pages - Is it OK to link to 3rd level pages from homepage? Should there be a link from homepage to all 2nd level pages? NetworkSolutions seems to think so. Well, I included the 3rd level pages also. They have special price reductions. Several of my 2nd level..

[Pe.Italy] - I am searching Webmaster Homepage by Data Bec.. - Cerco WebMaster HomePage by Data Becker oppure un Pop Code per poterlo utilizzare in Versione Trial. Ringraziamenti e saluti. Romolo Cappola

Different font default sizes - I'm finishing designing the site for a motel, using Dreamweaver MX 2004. I have a short page which lists comments from past guests (which come from the motel's guestbook). Since their comments were originally handwritten, I'd like to _try_ to have it..
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]