Why using the htaccess file

Answers were Sorted based on User's Feedback



Why using the htaccess file..

Answer / vijay

ht access file is quite useful for the following reasons:
1. If you're reorganising your site and moving pages around,
you can use the .htaccess file to redirect visitors from the
old page to the new one.
2. Another function of the .htaccess file is to allow you
to serve up pages which include PHP or Server Side Includes
(SSI) but whose file name still uses the .htm or .html
extension.
3. Allow or prevent directory browsing.
4. Because the server should check the .htaccess file
before anything is delivered to the client, you can use it
to password protect parts of your site.
5. You can also block various bots with the .htaccess
file — for example, you can keep some spammers out, or
prevent search engine spiders from indexing your images folder.

I hope this could help u.

Is This Answer Correct ?    13 Yes 3 No

Why using the htaccess file..

Answer / swarnadip

The previous answer helps u a lot. But if u want to know
more about .htaccess file then u can see the apache site.
http://httpd.apache.org/docs/1.3/howto/htaccess.html

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More PHP Interview Questions

What are the different types of statements that are present in php?

0 Answers  


What is the super method?

0 Answers  


What is php session_start() and session_destroy() function?

0 Answers  


In forms when i am click submit button it will store on the desired table as well as it send to paticuler mail id. Any body know the answer plz give me detail information.

2 Answers  


What is php trait?

0 Answers  


Which framework is best for php development?

0 Answers  


Why delimiter is used in mysql?

0 Answers  


How to convert a timezone from one to another ?

1 Answers  


How do I stop a php script?

0 Answers  


how much can a 1yr experienced php programmer earn in india?

9 Answers   TCS, Tops Technologies,


Version of php, apache ,mysql

1 Answers  


What are the different ways to login to a remote server? Explain the means, advantages and disadvantages?

1 Answers  


Categories