Jump to content
xisto Community
Sign in to follow this  
wannabeeaweak

wut is htacess?

Recommended Posts

wut is htacess and wut is it used for?

<{POST_SNAPBACK}>


the if a .htaccess file is in webserver directory, then that directory is protected by a password.

its basically used to construct members only areas.

 

im pretty sure this question has already been answered here.

Share this post


Link to post
Share on other sites

the if a .htaccess file is in webserver directory, then that directory is protected by a password.

its basically used to construct members only areas.

 

<{POST_SNAPBACK}>


It's not only for password protecting. .htaccess is used for many things like determining which page is loaded on an error (like the everyone's favourite 404 document not found :) ), limiting and allowing access for certain IP addresses or ranges, etc. etc.

Share this post


Link to post
Share on other sites

I found this at http://www.htmlite.com/HTA001.php

And i find it very helpful (it also answers your question)

What is the .htaccess file? Specifically, it a simple ASCII text file.

How do you create an .htaccess file?
You can use a regular text editor such as Notepad or Simpletext.

Where is the .htaccess file stored/saved?
It is stored in your main site directory and/or in any subdirectory.

What does the .htaccess file do?
That is what the following pages will cover. There are some main uses such as personalized error pages, password protection and redirects. It does all that and more.

Do all hosts support/allow this file?
VERY IMPORTANT : check with your host if they allow this file to be used by you AND if they pose any restrictions on its use. This is also important to know before reading all of the following pages. It'd be a waste of time doing all that learning for nothing. This file is works on an Unix/Apache based host, not Windows/NT.

Any other thoughts before heading into htaccess learning?
Keep a backup of the original file in case of problems.

Individual commands in the htaccess file are meant to be on one line only. Be sure that text editor has word wrap turned off.


Share this post


Link to post
Share on other sites

yes .htaccess is used by you cpanel hotlinking service, you are also able to buffer,
denying ips
password directorys for your site.
redirect
enable SSI
preventing a directory being listed,
adding mime types
error documents and much more

You can also use a function to prevent your .htacces from being viewed. .htaccess pretty much manages the inflows of users to yoursite and uses all the above functions and more.
If you want to learn more about the above functions you can visit
http://www.javascriptkit.com/howto/htaccess.shtml
for a tutorial
or use your cpanel features (which do all the above) if yuo can't be bothered learning about the functions or have limited knowledge (eg Hotlinking, leech protect, redirect manager..and more...)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.