Now when you type in www .mydomain.com it opens index.html or index.php file in your browser. But how i can change it to other file?
Look for the DirectoryIndex setting of your httpd.conf. This setting specifies which files will be used as index files and in which order.
upload a file named .htaccess (nothing before that dot (.)). write the following line in the file : DirectoryIndex required.html index.html index.php replace required.html with your own page name. Better write the line in a blank text file and then save it as .htaccess (not htaccess.txt !!!) Please give a green rep if it helps.
Try adding this to your .htaccess file... # serve alternate default index page DirectoryIndex yournewdefaultpage.html index.html index.php
This is not the right way to do what you want. If you just need to redirect.. no need of this much also. Just put a line of code anywhere b/w <head> and </head> of index.htm/php to do this. <meta http-equiv="refresh" content="0;URL=http://domain.com/page.htm"> Code (markup): But remember neither this nor you used are SEO friendly Thanks