lotuscha
Member
- Messages
- 33
- Reaction score
- 1
- Points
- 8
I'm not certain if my account has been suspended since I don't get any message when I sign in.
Domain: http://lotuschaser.x10host.com
Domain: http://lotuschaser.x10host.com
I can see that the folder exists by going to http://lotuschaser.x10host.com/stuff/ but clicking on the file in the list gives a 404. It looks to me like it could be something like url rewriting making a valid URL into a an invalid path. Are you using rewrite rules in a .htaccess file?
If you use the file manager you can check file permissions easily.
by default the permissions should be like this:
'files' would be 644 and 'folders' would be 755
sometimes when uploading files those might get changed,
or for whatever reason you change them after they get uploaded.
if you do not want everyone to view the content of a folder,
add this to your .htaccess file:
#Options +Indexes
DirectoryIndex index.php
IndexIgnore *
i had trouble using Options +Indexes so i added the # before it,
the # ignores that line of code but lets me keeps it in case i need it.
the DirectoryIndex tells it what to look for by default.
in this case i tell it i have an index.php that is used.
change the DirectoryIndex to the one you have, index.htm, index.html etc.
the IndexIgnore * will hide the folder content so no one can view files.
this protects your content from being seen by anyone.
you can also add the # to the beginning of any line of code in htaccess
if you want it to be ignored.
any file links should still work.
As well, how would I prevent someone from clicking on the "Parent Directory" and walking back through the directory structure, instead just go back to the 'root' or main directory?