I have an annoying problem. Every time I try to access a folder on my server
(Apache) without adding a slash at the end, I get a "page cannot be
displayed" message. For example, on my server I have a folder within htdocs
called "ct", and I want to access the index.php page in it from the address
http://localhost/ct. But when I try that, it gives me the "page cannot be
displayed" message. So I have to type http://localhost/ct/ (with a forward
slash / at the end). It's not a big deal but it is an annoyance and if I
ever run my own server I would like to know how to fix that.
I wonder if maybe setting the DefaultType directive to a directory is the
way to go? And if so, what's the MIME type for a directory?
Thanks
- JP
(Apache) without adding a slash at the end, I get a "page cannot be
displayed" message. For example, on my server I have a folder within htdocs
called "ct", and I want to access the index.php page in it from the address
http://localhost/ct. But when I try that, it gives me the "page cannot be
displayed" message. So I have to type http://localhost/ct/ (with a forward
slash / at the end). It's not a big deal but it is an annoyance and if I
ever run my own server I would like to know how to fix that.
I wonder if maybe setting the DefaultType directive to a directory is the
way to go? And if so, what's the MIME type for a directory?
Thanks
- JP
Comment