Hello, I had my web page on another apache server but I didn't need to do any .htaccess stuff so I'm starting from ground zero. I don't know anything about .htaccess other than it seems to be listed alot with PHP. I have a website at www.mydomain.com. I like to put files I need access to or m clients my need access to at www.mydomain.com/files. I have the files there and if I give the path with the filename - e.g. www.mydomain.com/files/document.xls, they can download the file but I need them to be able to go to www.mydomain.com/files and list the files they get an OOPS page not found. Can someone spoon feed me this htaccess file thingy? What is the name of the file to create? Where do I put the file? What do I put in the file? Sorry for so many questions but I have two other hosting companies that use apache and for some reason I never did these things - I just poste the files and they were listed. Thank you for our time.
Change your "files" directory permissions to 755..and make sure you don't have any files "index.html" or "index.php" in that files directory.
Thanks - I don't have any index files in that directory but I have no idea how to change my files directory permission to 755 for that directory.
If you are using cpanel, there will be an option like "change permissions" in the file manager (or Legacy File Manager). Open up the file manager, Select the directory, click "change permissions" and set it to 755
Thanks - cpanel is what I used on my other two web sites - not the same for godaddy. The only options I see under file manager using godaddy's web site are rename, copy, move, delete, upload. When I called godaddy they said I should start searching for info about .htaccess on the web. What I found was a lot of stuff about PHP - which I don't think applies. I believe I need to create a .htaccess file and put it in the directory I want to be able to list files in - not sure what I should put in my .htaccess to make it work for everyone.
are you going to mysite.com/files Code (markup): or mysite.com/files/ Code (markup): I'm not sure where the option is at but you may want to see if Indexes are turned off, this will prevent showing the index of your directories.
Thanks - I'm in uncharted territory - I guess I should have gotten the windows hosting. The CPANEL stuff was easy for the other hosting companies - godaddy doesn't have a lot of those features from what I can see. If I put in mysite.com/files, it redirects me to mysite.com/files/ both give me the oops
Thanks - so I ceate a file called .htaccess - put that one line in there and then put it in the directory I want to see the files? I just gave that a try and that doesn't seem to work - sorry but I don't know squat about .htaccess files other than that is what godaddy told me I need to fix the issue. I've never made a .htaccess file before, never needed one, never heard of one, never created one, never put one on a server.
LOL - I honestly have no idea. I'll try changing the code though (no luck). I had this web site on two different hosts previously everything worked fine - never needed htaccess on their linux servers so I've never done anything to modify rights access before. I've also tried Options All +Indexes. My goal is for anyone to be able to list the files and download them - not modify them or post files. 1 Do I need some header info in my .htaccess file - the ENTIRE contents of my .htaccess file are - Options +Indexes (also tried replacing the text with the other two listed) 2 Does the .htaccess file go into the specific folder you want to change the properties of? That is where I have put the document.
Sorry - 2 issues - the biggest is my fault. I didn't notice I had a .txt at the end of my .htaccess file and the second is that it takes several minutes for the change to go into effect.