English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi I have a website, how do I point my homepage to a php file without having to do a redirect?
Example: www.mywebsite.com goes to the page index.html, how can I make it go by default to index.php?

I have cpanel.
Thanks in advance!

2006-10-23 16:21:00 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

5 answers

Remove index.html. Chances are, when index.html is not there, index.php will be used as the index page.

2006-10-24 07:31:22 · answer #1 · answered by NC 7 · 0 0

First step is to remove index.html and replace it with index.php

Second step is to ensure that your server is showing php files correctly. For this go into your website hosting control panel or admin section and modify the settings so that php files are shown as well as html files.

2006-10-26 14:23:38 · answer #2 · answered by westcoastcamper 2 · 0 0

if you only have index.php, then you can simply remove any other index files (like index.html, index.htm)
but if you want to name something else to be your main index page such as somepage.php then you need to create an entry to .htaccess file
you can simply edit your .htaccess file which resides in your root folder (usually public_html or www folder)
just add extra line

DirectoryIndex whateverpage.php

Thanks.

2006-10-23 23:54:23 · answer #3 · answered by aalamin79 2 · 0 0

Easy... remove the html file, and create a file called index.php (0r .php3, you may need to check with your hosting company to see which is appropriate on your particular server.

It works, trust me

2006-10-23 23:29:53 · answer #4 · answered by IanP 6 · 0 0

make your index.php page and put that in your .html or public_html folder instead of index.html

2006-10-23 23:30:34 · answer #5 · answered by themadman 2 · 0 0

fedest.com, questions and answers