Is there a way i can have it where when someone goes to my domain, www,domain,com they can see the /index.php file without having to type in www,domain,com/indexphp
in the httpconf file in the apache dir, there should be a line with index files. add index.php to that.
Maybe the default index file is set to "index.html", you can create it and put a redirect to "index.php". EX: <html> <head><meta http-equiv="refresh" content="1; url=index.php"></head> <body onload="document.location='index.php'"> <script>document.location('index.php');</script> <noscript><a href="./index.php">Go to site!</a></noscript> </body> </html> HTML: Or something like that.
Start > Administrative Tools > Internet Information Services Open ServerName Open Websites Highlight your website Right click and click properties Click the Documents Tab Make sure enable default content page is checked Add Type index.php Click ok Click ok Close IIS It will now work If you do not have access to the server through RDP/PCA/VNC or whatever then contact the host. If you have a control panel let us know what it is and I will let you know how to adjust it in your control panel.
Yes i dont have access to it like a server. I have a cpanel. The hosting company is Ix Web Hosting. Its the Win Unlimited plan.
I didnt realise CPanel was available for windows yet. I recomment just sending a ticket to the host asking them to set index.php as a default document for your domain. It's just a 1 minute job to do on the server.
create a file named .htaccess (with the period) and inside of it put DirectoryIndex index.php index.htm index.html Code (markup): this will make the default page for that directory one of either index.php, index.html, or index.html then simply upload it to the directory which you want to use it on
he said nothing about IIS. i'm currently running Apache2 on windows xp. but in the case that he is running IIS, then no, it won't work.
Ok, i put in a ticket with the hosting company. If they cant change it, should i just get a linux based hosting and i will be ok
You can normally change the default documents via the control panel, we certainly can with our Helm control panel. If your host is running IIS you will be better off moving across to an Apache based webhost as IIS doesnt support the likes of .htaccess and mod url rewrite thingy. These are not an issue with .Net as it has its own way of doing these things but is an issue for PHP users
Can anyone recommend me an host that i can use. This is for a file sharing site. So would like to have as much space as possible or at least unlimited. Paid $100 for this hosting i have right now for 3 months, guess ill just sit on it and let it rot or something.
I got it to work now, Needed to add index.php to the directory indexes. Thought i did that last night, guess i over looked up but hosting people saying on win servers by default its set without it, got to manually add it in. Thanks for all the help and replies you guys gave me. Got me thur that night of hell.