homepage Welcome to WebmasterWorld Guest from 54.205.254.108
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Changing Opening Page
Index and Hompage
rajivadhy




msg:4101414
 4:23 am on Mar 20, 2010 (gmt 0)

Hi,

I have a sites opening index page on when url is entered which is also homepage
I want the page /video/index.php to open on default but home to remain as website index

Please help. ( want minimum amount of programming)

Rajiv

[edited by: dreamcatcher at 11:10 am (utc) on Mar 20, 2010]
[edit reason] Exemplified [/edit]

 

impact




msg:4102095
 2:51 am on Mar 22, 2010 (gmt 0)

Hello
Well, this is all comes to my mind.

Use .httaccess to change the default page to index2.php

in index2.php have this code
<?php
header("Location:http://YourDomain.com/video/index.php");
?>

Have a link to "http://YourDomain.com/index.php" in "http://YourDomain.com/video/index.php" for those who really want to visit the home page.

There is a side effect of this. Using .httaccess will change default page for all folders and sub folders.
You can have

rajivadhy




msg:4102122
 4:16 am on Mar 22, 2010 (gmt 0)

Super it worked thanks

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved