Welcome to WebmasterWorld Guest from 54.162.167.40

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)

5+ Year Member



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)

5+ Year Member



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)

5+ Year Member



Super it worked thanks
 

Featured Threads

Hot Threads This Week

Hot Threads This Month