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?
site doesn't load index.php unless index.php is in URL
site doesn't load index.php unless index.php is in URL
Last edited by cnymike on Sun Jan 22, 2006 3:58 am, edited 1 time in total.
Re: site doesn't load index.php unless index.php is in URL
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
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
Greg
Re: site doesn't load index.php unless index.php is in URL
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?
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
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.
Code: Select all
Directory Index index.php
Re: site doesn't load index.php unless index.php is in URL
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
Check that php extensions are properly set up in your web service settings.
Also check this info
Greg
Re: site doesn't load index.php unless index.php is in URL
Ouch...I feel really guilty that I didn't look that faq up myself. thanks.
(cnymike is now sheepishly leaving the forum...for now)
(cnymike is now sheepishly leaving the forum...for now)
Re: site doesn't load index.php unless index.php is in URL
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
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
Ah, there you go. That's what I get for not testing stuff I find on the net first.
Glad it's working now.
