|
Different index page? index.php? How can I have a different index page instead of index.html?
My site is all in PHP and I want to have index.php instead of having index.html as the start page.
Help!
[ ] Want to answer more questions in the Technology category? Maybe give some free advice about: Internet & Web Design?
I'm sure you've tryed it but try renaming your index.html to index.php.
I doubt it would work though, worth a try.
If not you could either upload your index.php via FTP (or whatever you're using to upload) and make it overwrite index.html
If not then deleting index.html and uploading index.php.
You could also make index.html redirect to index.php which is what I had on one of my old sites.
Good Luck :D
edit// thanks for the one but I'm not copying their answers. I didn't even look at the other answers. I knew what you had to do from the start. and chances are more than one person is gonna know the right answer so obviously they're gonna give the same answer. ]
Hello there,
While it is possible that renaming your index file to index.php will work, I am assuming you have already tried that.
The redirect method using meta refresh is very common and a workable solution if your host can't accomplish anything better. It will however be the death of your site in the search engines. There is almost nothing that you could do for your search engine ranking that would be worse than that.
If you would like to find out all the variable commands for that go right ahead and do a search for "meta refresh redirect" in Google.
If your server supports .htaccess configuration files, in other words your web server software is Apache, you can make a single text file save it as .htaccess
... and insert the following line of text inside it:
DirectoryIndex index.php
Save this file and upload it to the root directory of your web site, and it will be fixed up for you in real time. Doing it this way the search engines will love you. :-)
DangerNerd. ]
I assume you just delete index.html and upload your index.php and it should be your new main page. I've never had my site in php so sorry if I didn't help =S ]
You can have an index.html page set up to instantly redirect you to index.php.
Really, many servers allow for the index page to be index.whatever - it is all dependent on how the webserver is configured.
That said, the redirector is easy to do and skips needing to find out how the server is set up. ]
More Questions: |