Free AdviceGet Free Advice
Home | Get advice | Give advice | Topics | Columnists | - !START HERE! -
Make Suggestions | Sitemap

Get Advice


Search Questions

Ask A Question

Browse Advice Columnists

Search Advice Columnists

Chat Room

Give Advice

View Questions
Search Questions
Advice Topics

Login

Username:
Password:
Remember me
Register for free!
Lost Password?

Want to give Advice?

Sign Up Now
(It's FREE!)

Miscellaneous

Shirts and Stuff
Page Backgrounds
Make Suggestions
Site News
Link To Us
About Us
Terms of Service
Help/FAQ
Sitemap
Contact Us


Different index page? index.php?


Question Posted Saturday June 11 2005, 10:52 pm

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!


[ Answer this question ]
Want to answer more questions in the Technology category?
Maybe give some free advice about: Internet & Web Design?


_eMiLy answered Wednesday June 15 2005, 5:21 pm:
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.

[ _eMiLy's advice column | Ask _eMiLy A Question
]




DangerNerd answered Sunday June 12 2005, 4:08 am:
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.

[ DangerNerd's advice column | Ask DangerNerd A Question
]



HyperactiveMiss answered Saturday June 11 2005, 11:51 pm:
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

[ HyperactiveMiss's advice column | Ask HyperactiveMiss A Question
]



MFS answered Saturday June 11 2005, 11:50 pm:
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.

[ MFS's advice column | Ask MFS A Question
]

More Questions:

<<< Previous Question: Driving.
Next Question >>> My friend is lying.. should i stop her?

Recent popular questions:
Want to give advice?

Click here to start your own advice column!

What happened here with my gamer friends?

All content on this page posted by members of advicenators.com is the responsibility those individual members. Other content © 2003-2014 advicenators.com. We do not promise accuracy, completeness, or usefulness of any advice and are not responsible for content.

Attention: NOTHING on this site may be reproduced in any fashion whatsoever without explicit consent (in writing) of the owner of said material, unless otherwise stated on the page where the content originated. Search engines are free to index and cache our content.
Users who post their account names or personal information in their questions have no expectation of privacy beyond that point for anything they disclose. Questions are otherwise considered anonymous to the general public.

[Valid RSS] eXTReMe Tracker