Page 1 of 1
site doesn't load index.php unless index.php is in URL
Posted: Sun Jan 22, 2006 3:53 am
by cnymike
I thought that webservers automatically always loaded an index.php page if a url specifies just a directory with no index.php appended to the URL.
But with my test install of CMSMS, just going to
http://www.mywebsite.com/ , does not load my website but just shows the directory listing. Is this a server issue or a CMSMS issue?
Re: site doesn't load index.php unless index.php is in URL
Posted: Sun Jan 22, 2006 1:39 pm
by Greg
Server issue.
Is this a local set-up or through a web-hosting service?
If local and you are using apache you need to add some lines to your httpd.conf file
e.g. AddType application/x-httpd-php .php
Re: site doesn't load index.php unless index.php is in URL
Posted: Sun Jan 22, 2006 2:04 pm
by cnymike
Greg,
It's a webhosting service (hostrocket.com)
The service has php and I use other CMS systems for other sites that I have. but I've never seen this issue before. Is this something that I can "fix" by going into .htaccess and adding something?
Re: site doesn't load index.php unless index.php is in URL
Posted: Sun Jan 22, 2006 2:26 pm
by Ted
I believe that putting
into your .htaccess file should fix the problem. Though, I would probably get ahold of your hosting service, because that really should be working properly.
Re: site doesn't load index.php unless index.php is in URL
Posted: Sun Jan 22, 2006 8:31 pm
by Greg
I see hostrocket.com uses cpanel to control many aspects of your hosted service.
Check that php extensions are properly set up in your web service settings.
Also
check this info
Re: site doesn't load index.php unless index.php is in URL
Posted: Mon Jan 23, 2006 2:30 am
by cnymike
Ouch...I feel really guilty that I didn't look that faq up myself. thanks.
(cnymike is now sheepishly leaving the forum...for now)
Re: site doesn't load index.php unless index.php is in URL
Posted: Mon Jan 23, 2006 2:48 am
by cnymike
wishy,
I actually tried your code but it didn't work. this worked however...
DirectoryIndex index.php
I guess the extra space between Directory and Index was the problem.
Michael
Re: site doesn't load index.php unless index.php is in URL
Posted: Mon Jan 23, 2006 11:14 am
by Ted
Ah, there you go. That's what I get for not testing stuff I find on the net first.

Glad it's working now.