ShadowStriker
New Member
- Messages
- 206
- Reaction score
- 0
- Points
- 0
i have seen a couple sites from here that have no /blahblah but still they get somewhere instead of that place with the folders....
NedreN said:Omg....
What he is talking about is directory indexing. When there is no "index" for the directory you are in, you will see a "list" of files/folders that are in that directory. If you don't want to see a list, you must make a file that can be, index.php, index.html, index.shtml, etc. You can change a directorys "indexing" using .HTACCESS files.
You can change which filenames are considered the "index" file by place this line in a .htaccess file:
DirectoryIndex [filename].[extension]
Example:
DirectoryIndex portal.php
If you want to disbale directory indexing, you add this line to your .htaccess file:
Options -Indexes
To enable:
Options +Indexes
Edit: If you want to create a file, go into cPanel >> File Manager >> go to public_html >> Create New File >> type in the filename+extension.
Hope that helped.