Nov 22, 2009

How To Modify .htaccess To Protect A Directory?

free web hosting
Open Discussion > MODERATED AREA > The Internet > Web Design

How To Modify .htaccess To Protect A Directory?

m107
hi
i have a free webhost included cpanel
but it's cpanel is not full and i can not protect my dir through it.
then i think i should use .htaccess .
now i dont how i must creat .htaccess files or hoy to using it sad.gif sad.gif
can any one help me pl

Comment/Reply (w/o sign-up)

Lyon2
Here is everything you must know:

Htaccess
http://en.wikipedia.org/wiki/Htaccess

There you can see how to protect with password and a lot more, at least what it really matters.

---------

Here is a very complete tutorial, with 3 parts, of htaccess
http://www.freewebmasterhelp.com/tutorials/htaccess/1

Comment/Reply (w/o sign-up)

m107
QUOTE(Lyon2 @ Aug 14 2006, 06:49 PM) *

Here is everything you must know:

Htaccess
http://en.wikipedia.org/wiki/Htaccess

There you can see how to protect with password and a lot more, at least what it really matters.


thank you
but how can i use that code?
i can not creat a .htaccess file on my pc to upload it sad.gif
what should i do?

Comment/Reply (w/o sign-up)

Lyon2
Try this htaccess file generator and htaccess password generator:
http://www.yellowpipe.com/yis/tools/htacce...rator/index.php

or this simple yet good:
http://shop.alterlinks.com/htpasswd/htpasswd.php

or this one (very good):
http://cooletips.de/htaccess/

or

Open notepad, insert the code you want, after reading those tutorials, then save it has htaccess.txt .

Then go to the folder where you saved the htaccess.txt file and rename it to .htaccess

That is it, exactly like that: .htaccess (with the point behind, and no extension.)

Then upload it to the directory you want to protect with password or whatever you want to do.

You must read that complete tutorial, or the first link.

Comment/Reply (w/o sign-up)

(G)

some users can't rename a file and take out the beginning, so open it in text,

file>save as

then in the drop down list, instead of selecting text files, select all files

now in the name area, type ".Htaccess", hit save, and you're set.


Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)


Searching Video's for modify, htaccess, protect, directory
See Also,
advertisement


How To Modify .htaccess To Protect A Directory?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com