Why using the htaccess file
Answers were Sorted based on User's Feedback
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 |
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 |
What is the purpose of basename() function in PHP?
Why many companies are switching their current business language to php?
What is escaping to php?
What is the difference between null and empty?
How do I know my xampp version?
What is == and === in php?
How to replace a text in a string with another text in php?
Is not null mysql?
How is it possible to propagate a session id?
What is meant by urlencode and urldocode?
Tell me what kind of things have you done on the social side?
What is difference between mysqli and mysql?