Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Closed Thread
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 08-18-2012, 02:13 AM
Contributing Member
Latest Blog:
None

 
Join Date: 11-27-08
Posts: 100
iTrader: 0 / 0%
What is htaccess file and use of it ?

Hello friends
Please give me the answer.
__________________
Compare|News
 
  #2 (permalink)  
Old 08-18-2012, 03:10 AM
Sanket Patel's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 08-07-12
Posts: 54
iTrader: 0 / 0%
Hypertext Access short name of this file is .htaccess. It is very important file for the site owner because you can redirect your site pages, change the extensions of pages, protect passwords and much more. .htaccess file gives you control on redirection of your pages. This should be done using FTP server program. You can solve page duplication problems by help of this. It has a number of benefits.
__________________
Follow me on Twitter
 
  #3 (permalink)  
Old 08-18-2012, 08:57 PM
Junior Member
 
Join Date: 08-05-12
Location: Ahmedabad
Posts: 9
iTrader: 0 / 0%
Quote:
Originally Posted by Sanket Patel View Post
Hypertext Access short name of this file is .htaccess. It is very important file for the site owner because you can redirect your site pages, change the extensions of pages, protect passwords and much more. .htaccess file gives you control on redirection of your pages. This should be done using FTP server program. You can solve page duplication problems by help of this. It has a number of benefits.
I agree with you Sanket. Till now I am only aware of redirection use of .htacces file. But from your post i came to know that it can be used to protect password also. Thanks for the information.
 
  #4 (permalink)  
Old 08-22-2012, 06:05 AM
Junior Member
 
Join Date: 08-22-12
Posts: 11
iTrader: 0 / 0%
I use it mostly to ban spammers and alot of bad bots
very useful file to protect your site
 
  #5 (permalink)  
Old 08-23-2012, 05:34 AM
Member
Latest Blog:
None

 
Join Date: 07-16-12
Posts: 39
iTrader: 0 / 0%
HTaccess stands for Hypertext access and it is a kind of admin tool which allows site owner to manage their web pages as redirection of pages, security of passwords, change in any extension page and many more but the most important task which can be done through this ht access is the security of the password and redirection of web pages.
__________________
Hire your own virtual team of dedicated PHP Programmers or Developers
 
  #6 (permalink)  
Old 09-25-2012, 07:51 AM
Junior Member
 
Join Date: 01-31-12
Location: Serbia
Posts: 10
iTrader: 0 / 0%
.htaccess file is usually used for redirections.
You redirect www version of your page to non-www version in order to avoid duplicated pages (which is not good thing for Google)
You can also make permanent redirections, if page was deleted and other SEO-friendly stuff.
For example, you can prevent hot linking from .htaccess
 
  #7 (permalink)  
Old 10-09-2012, 01:18 AM
Member
Latest Blog:
None

 
Join Date: 10-07-12
Location: Dublin
Posts: 35
iTrader: 0 / 0%
first of all .htaccess is a directory level configuration file (meaning you can have many of those in different directories)

second - it overrides server's global configuration

third - it can only be accessed directly - never via http

Things you can do with .htaccess:

- restrict access to a directory (allow only users with passwords in .htpasswd file)
- instruct how to handle different mime types
- control caching
- control directory listing
- block IP's, domains, referrers
- and even URL rewriting!

see this site for great .htaccess tips corz(dot)org/serv/tricks/htaccess.php

I should also add that overuse of .htaccess can be very messy, makes website hard to control and has performance implications (just so you don't get over excited and start putting .htaccess with url rewrites in every single dir
__________________
Currently working on online surveys and polls software.
For great free surveys and polls software visit http://www.knockoutsurveys.com. To see what people think visit http://everydaypolls.com

Last edited by SlavD; 10-09-2012 at 01:21 AM.
 
Go Back   Webmaster Forum > Web Development > Coding Forum

Closed Thread

Tags
htaccess file


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why we use .htaccess file ? jennycarol25 SEO Forum 6 07-26-2010 01:40 AM
Help with .htaccess file Buzzman Coding Forum 3 06-05-2010 10:18 AM
Conflict, What is the right htaccess rule, default homepage file with htaccess? basketmen Coding Forum 2 01-20-2009 07:50 AM
Need help with HTACCESS file brandnew Coding Forum 2 12-02-2007 10:13 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:01 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.