What is .htaccess and how does it work in setting up webpages that are only viewable with membership?
Sun Jan 01, 2006 10:04 pm
Andrew Admin
Cash: $ 465.30
Posts: 1709
Joined: 02 Nov 2003
Location: Texas
The .htaccess file is a way to configure the operation of your webserver for Apache.
One of the tricks you can do with it, is to set-up password protected areas of your website. This could be member/password entry or just a password to gain entry depending on how you configure it. You can use an online tool to generate an encrypted password, and then paste the results into the .htaccess file in the subdirectory you want to protect.
Mon Jan 02, 2006 12:57 am
No-Brainer Senior Member
Cash: $ 78.85
Posts: 964
Joined: 29 Dec 2005
Location: Oregon USA
A simple way
Most web hosting accounts use a control panel of some sort, the most popular being Cpanel. Look for an icon that relates to 'Protect Subdirectories' and follow the instructions.
quote: This module uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly. It supports an unlimited number of rules and an unlimited number of attached rule conditions for each rule to provide a really flexible and powerful URL manipulation mechanism. The URL manipulations can depend on various tests, for instance server variables, environment variables, HTTP headers, time stamps and even external database lookups in various formats can be used to achieve a really granular URL matching.
This module operates on the full URLs (including the path-info part) both in per-server context (httpd.conf) and per-directory context (.htaccess) and can even generate query-string parts on result. The rewritten result can lead to internal sub-processing, external request redirection or even to an internal proxy throughput.
.htaccess file will be used when you want your dynamic url changed into search engine friendly url's..
.htaccess file can also be used if you want to redirect from your old domain to new domain rather than using the traditional meta refresh tag.
Sat Jan 28, 2006 9:01 am
TajGaunson First Time Poster
Cash: $ 0.20
Posts: 1
Joined: 04 Feb 2018
In today’s world every men is thinking of making money more than other person without thinking that which way is good or bad. By this site best essays written we can learn more good methods of earning money.[/url]
Sun Feb 04, 2018 12:15 pm
Monika555 Full Member
Cash: $ 17.25
Posts: 80
Joined: 26 Oct 2017
I'm glad that I've found this thread! I've been working on my website creation using a step-by-step guide and getting inspired by the informtion from https://studioblackbelt.com. Unfortunately, I don't have much experience in website building and running, so I haven't heard about such thing as .htaccess. So, thanks for the enlightening, guys!
Thu Mar 01, 2018 1:01 am
ranjith422 Preferred Member
Cash: $ 36.50
Posts: 197
Joined: 07 Mar 2018
Location: New York City
It is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software.