Rachana Rachana - 5 months ago 8
SQL Question

Giving default page to a project

I am working on a project in php and iis. All the files are in a folder public. Every time I have to type this entire url to enter a page. Is it possible to type just space and enter any default page of the project?

localhost/space/SPACE_V01.01.13/Source/Source_code/public/xxxx.php


If
localhost/space/SPACE_V01.01.13/Source/Source_code/public
is given, I can set a default page using iis manager default document option. But I need to go to that document only if
localhost/space
is given.

Answer

Create a index.php file in your root directory of localhost and place just the following code in it.

<?php
header("Location:localhost/space/SPACE_V01.01.13/Source/Source_code/public/xxxx.php");
?>

And make sure there is no other index file in your root directory wheather .html or .php

Hope it works!!!