Tech Support > Computers & Technology > Anyone know about htaccess files on websites?
Anyone know about htaccess files on websites?
Posted by Laurie on April 10th, 2008


Web page creation. Just made my page on the server of my new ISP
Got it up and running, but tried to no avail to get the page to allow
access by the public to one folder for downloading files that I put up
there from time to time.

It denies access
I tried putting a .htaccess file (ascii text) with the commands
Options +Indexes in the root public folder where all the other files
were.
Didn't work
Tried Options_Indexes as told me by my ISP's clueless support line!

Tried putting an empty file up there.
Currently it's called AAA.htaccess to make it sit at the top of the
files list.
Still no go.

What's the trick?
I only want to make a folder called /gifts available to public access
and the Server ISP doesn't say they don't allow it. So where can I
find out how to form this htaccess file properly and then post it in
the right place.

On my last ISP I put it in the Gifts folder and it worked a treat.
It's taken me all day to find anywhere that might answer this
question.
Any takers here?
Thanks
Whispertread

Posted by why? on April 11th, 2008



On Thu, 10 Apr 2008 10:37:59 -0700 (PDT), Laurie wrote:

Not AAA that won't do anything at all.

Hhave you set the correct chmod? Guessing you know that since it worked
before.

http://www.htmlite.com/HTA004.php
http://www.javascriptkit.com/howto/htaccess.shtml

The directives apply to the folder .htaccess is in.

That's a bit vague :-) anywhere. If you did find some site/ links it
doesn't hurt to mention then, aviods posting duplicates.

Long post, rambles a bit and you forgot to mention ISP , the Server OS
and Web server software (assumes appache, from remark above) your site
is on.

Other than that, also assumed you have read the Apache documentation. If
not.

http://httpd.apache.org/docs/2.2/howto/htaccess.html

Me

Posted by Laurie on April 11th, 2008


When I try to change it to .htaccess on my local PC drive it refuses
to be renamed without a prefix.
If I post it up as text (ascii) on the /Public_html directory on the
server I can rename it there, but it disappears and becomes invisible
and you can't find it again to access it, or delete it.
WS Ftp doesn't seem to have a facility to make it visible.

I tried changing the command inside the .htaccess to Options -Indexes
and that didn't work either.

No I don't/didn't know that, I haven't a clue what the chmod is and I
didn't have to do anything to that setting before on the old site. I
just put an .htaccess with Options +Indexes in the /Public_html/gifts
folder and it allowed access.


this and apache. I didn't know what apache was and couldn't fathom
anything about what they were talking about. They seem to do nothing
but advise how to lock people <out> of access not allow them in.
Stuff like password entry and nothing that was relevant to my problem.


I don't know what you mean by vague. What information have I missed
and also I'm mystified by what you mean by find some site links I
don't see any mention of site links in my posting? What do you mean
by posting duplicates? I've posted this question up on only one other
place and that's on Tech Support Guy forum and they haven't got me an
answer yet. No shortage of good folks like yourself trying to solve
this for me. I'm very grateful but you do credit me with having a
much higher technical understanding than I have, or at least you
assume I have.
I can't even write html, I made my site with a wizard. It was just a
file handling job.
But this .htaccess business is complete gobbledegook to me.
Surely it should be easier than this when ISPs won't support for Web
page making.

Hope you can clarify what you want me to tell you.
Thanks
Plado



Posted by Laurie on April 11th, 2008


Sorry to be carping on about this but I just went to that url above
and read through the tutorial and it did show me how to create a file
locally called .htaccess with no prefix but it had nothing in there to
show me what commands I should put in the file. The deeper I read the
more it got into Password protection which is not what I want to know
about.

I do know that Options +Indexes or -Indexes doesn't work and it also
doesn't work with a plain .htaccess file having no AAA in front of the
dot.

I couldn't work out how you check or create the CHMOD for the file and
how you find out if it's set to 644 or RW-R and all other bits of
code. Where would that be hiding in a plain ascii text file?

Is this in the file properties? If so I've never seen it in a plain
text file.

Posted by wijdg@yahoo.com on April 12th, 2008


On Fri, 11 Apr 2008 12:46:51 -0700 (PDT), Laurie
<whispertread@googlemail.com> wrote:

lmao. someone please pass the popcorn.

Posted by Laurie on April 12th, 2008


Asking for popcorn isn't an opinion so why the IMAO?

If you're not keen on the plot of this 24 hr help topic, I would
suggest you press the interactive red button and change the outcome!
But you'll have to find a conclusion to the current plot before you
do.

Failing that you could always sit and watch a dodgy Dishwasher do its
cycle if you think that would be less boring than this thread ! ;-))


Posted by Laurie on April 12th, 2008


One final reply here and this thread can close.
Don't want to waste anyone's time here.
The Webserver of my new ISP that I was trying to get access to with
htaccess files has turned out to be an ISS or something type of
server.

I haven't a clue what that means but I do know that it isn't an Apache
and it doesn't recognise .htaccess files or commands so I'm out of
luck.
The task cannot be done so I'll say thanks for trying to help.
Job can't be accomplished.
I'll go away now.

Whispertread

Posted by why? on April 13th, 2008



On Fri, 11 Apr 2008 12:32:52 -0700 (PDT), Laurie wrote:

In that case it would, wrong filesystem.

It does, it's because '.extension' is hidden.

You can, in whatever ftp app you use you should be able to manually or
automatically add -a -L to the directory listing.

Then enter the dir command manually.

What version of WS_FTP?

Ah, well it sounded like you did as you got it working before.

I haven't read it for years, but now you know what sort of examples to
look for.

Exacly, you said you looked, but didn't post any links. Post some links
so either duplicates aren't posted. Or it's easier to read what you may
have found and see where you got stuck, rather then guessing.

<snip>

Me

Posted by why? on April 13th, 2008



On Sat, 12 Apr 2008 12:28:18 -0700 (PDT), Laurie wrote:

IIS, the Microsoft webserver.

That's it then.

Off the top without looking into it would be,
[but I am sure you could www.google.com for better solutions]

Find many IIS forums, developer sites have solutions.

Create a user account/password for access to the site. Add this account
to all folders you want to protect, remove the default IIS public
anonymous access except from /gifts. So when any other page is accessed
a name/password dialog should popup.


Something like
http://www.hostmysite.com/support/de...sswordprotect/
but if you only have the webfolder access and no server access / control
panel it won't work.


Me


Similar Posts