.htaccess problem

I have tried to set htaccess password with my web server for my pages
I created a file .htaccess and a password file .htpasswd and plavced them in a directory. when I log in with Cute FTp the path I see inside is /public_html and nothing else so I placed the above path in the htaccess file but when I go to my page it asks me my id and password and it keeps asking me as if it's the wrong password. I think somehow the directory I placed inside the htaccess is wrong
to get tou my page is www.users.globalnet.co.uk/~markv/lepage and it asks me for a password but to no evail. wich is my path to tell the htaccess file ??
Help please
souvlakiAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

julio011597Commented:
I guess you should put in it a path relative to your web server root directory.

-julio
0
souvlakiAuthor Commented:
yes but what is the path ??

I have tried puting the path I see when I log on with FTP but nothing
0
julio011597Commented:
Since you're talking about htaccess, i guess your pages are reachable through a web server, and the said path is what you would see in the location field of your browser, after the host.domain part.

E.g., this page's url is "http://www.experts-exchange.com/topics/bin/ShowQ?qid=8630035321", so the path is "/topics/bin/ShowQ?qid=8630035321".

HTH, julio
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

souvlakiAuthor Commented:
wlll I have tried that but nothing
0
julio011597Commented:
Can you the pages if you remove authentication?
0
julio011597Commented:
Sorry: can you _get_ the pages if...?
0
souvlakiAuthor Commented:
Yes
0
julio011597Commented:
So, it seems your access and password files must be wrong.

Could you show them?
0
souvlakiAuthor Commented:
this is the htaccess file

AuthUserFile /~markv/public_html/lepage/.htpasswd

AuthGroupFile /dev/null

AuthName ByPassword

AuthType Basic



<Limit GET>

require valid-user

</Limit>




0
julio011597Commented:
There seems to be no error here.
0
souvlakiAuthor Commented:
yes but I don't think the path for the htpasswd file is right cause it wont find it I dont know the path
0
julio011597Commented:
Sorry, i'm lost, since i've no access to the rilevant documentation anymore.
0
ozoCommented:
Does your server recognise ~user notation in path names?
That's usually a shell globbing feature.
0
souvlakiAuthor Commented:
Yes the path to my page is www.users.globalnet.co.uk/~markv

but when I get in my filder where the pages are stored lets say the index htm. I go to Cute FTP and connect to www.users.globalnet.co.uk and the directory is /public_html/
0
bigelosCommented:
Your root directory for FTP is usually your unix shell account directory.  However, if your ISP is anything like all the others I've seen, you have a public_html directory that is used as the root directory for your web site, and nothing can be accessed above it.  Instead of using the absolute path, why don't you just use the relative path? i.e. put the .htpasswd file in the same directory as the .htaccess file, and then the path would be just .htpasswd.

There is a full guide to HTTPd available here:
http://hoohoo.ncsa.uiuc.edu/docs/tutorials/user.html
0
souvlakiAuthor Commented:
Well I have tried everything even the .htpasswd path on its own but it can't find the path

my server has /public_html and you can't go above it
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.