Forum Moderators: mack
The only problem I am having is that if I direct a page to a folder not an actual index file it won't find it.
Normally if you direct to say .com/hello/ it would find the index.php file that is in the hello folder. Have I got a setting wrong or is there a way to change this behavour.
Also while I am here, if I want to direct back to the homepage can I just put '/'? or do I have to do .com/index.php
Thank you for your responses.
Find this bit..
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
and change it to this...
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
..or this..
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
A final note though. It works fine when there is a forward slash on the end of the folder name (folder/) but not when there isn't. I am assuming that the correct way is to use forward slashes after and the fact that it works on the server without them is just luck. Correct?
I checked the bbc website and all 'no file name' links have a following slash.
Once again, thank you very much.