Friends, i m willing to open http://www.demo.com/debo/demo1.php through http://www.demo.com/debo/ instead of http://www.demo.com/debo/demo1.php how can i do? plzz help with code. i m new in PHP.
In debo I'd just make an index.html with <script type="text/javascript"> <!-- window.location = "http://www.demo.com/debo/demo1.php" //--> </script> Code (markup): Would that work?
You should add the demo1.php as default page. Do you have an Apache webserver, and are .htaccess files allowed? Put an .htaccess file in the directory http://www.demo.com/debo/ DirectoryIndex demo1.php index.php index.html Alternatively (a workaround): put a index.html in the http://www.demo.com/debo/ directory that contains a meta refresh tag that redirects automatically to http://www.demo.com/debo/demo1.php See: http://en.wikipedia.org/wiki/Meta_refresh