I've had a website posted online for a while now, and the last time I visited it, going directly to the home page showed my entire directory of files (because I had no index.html in my public_html directory).
Recently, however, I've visited the home page and instead of my directory I get a 403 Error, Forbidden to access the page from this server. I haven't changed anything, and I can still see pages that have an index.html file. But I'd like to restore the feature of having the directory visible. I don't even have an htaccess file.
So, how would I go about writing one? I know you have to add Options Indexes to allow directory viewing, but is that all I have to write? No other code is necessary, just create a text file with that single line in it, change the name to .htaccess, and upload it to my public_html file?
Tags: