Hi, I have a site adhysteria 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 adhysteria index Please help. ( want minimum amount of programming) Rajiv
Rajiv - sorry, I didn't quite get what you wanted. If a user goes to www.mysite.com you want them to still get the index page But in some other instance you want them to get /video/index.php? The home page is the default - so what are your rules?
site opens adhysteria.com/index.php there is anothet page adhysteria.com/video/index.php whev a user types adhysteria.con want the video page to open. when he clicks on home tab he should however still go to adhyster.con/index
Well can you please check adhysteria.com and adhysteria.com/video ( the page i want people to see when they type adhysteria.com)
Why not in your index.php file in adhysteria.com add the code: <?php include('./video/index.php'); ?> Code (markup):
thanks will this lead user to that page on openong adhysteria com, also whta happens if user clixks home he should go back to adhysteriacom please advice
This will display the /video/index.php at the location of the ./index.php That is what you requested. Regards.
Do i include this anaywhere within file do I need the <?php command i tried got error on opeing page Parse error: syntax error, unexpected '<' in /public_html/index.php on line 33
there shouldn't be anything else in your index.php file as you want it to show the /video/index.php file instead.
Ok copy that, ONe important question home buttons and tabs go to original index file or homepage what to do about that. Rajiv
FWIW I'd have used .htaccess - if no page requested go to /video otherwise serve up the request page.