Welcome to WebmasterWorld Guest from 107.20.75.63

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Changing Opening Page

Index and Hompage

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

New User

5+ Year Member

joined:July 7, 2009
posts: 26
votes: 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]

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

Junior Member

5+ Year Member

joined:Sept 12, 2009
posts: 137
votes: 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
4:16 am on Mar 22, 2010 (gmt 0)

New User

5+ Year Member

joined:July 7, 2009
posts: 26
votes: 0


Super it worked thanks