0 Replies - 10181 Views - Last Post: 15 February 2012 - 03:11 PM Rate Topic: -----

#1 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8919
  • View blog
  • Posts: 33,440
  • Joined: 12-June 08

[link]10 useful htaccess tricks to improve your website

Posted 15 February 2012 - 03:11 PM

http://www.designer-...r-website-22247

Not a bad array of things you can do with such an unassuming files. I swear skynet would totally be stimmied by a htaccess file.



Quote

For some reason, the .htaccess file is often overlooked by web designers. If you have no idea what the .htaccess file is, Iíll just give you the Wikipedia definition: ďA .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, that allows for decentralized management of web server configuration.Ē

But letís get to it, here are some of the cool things you can do in your .htacces file.


1. Hotlinking protection with .htaccess
2. Prevent directory browsing
3. SEO friendly 301 permanent redirects
4. Display a custom 404 error page
5. Setting the default page of a directory
6. Block unwanted visitor based on referring domain
7. Specify upload file limit for PHP in htaccess
8. Compress files
9. Cache files
10. Force trailing slash


Is This A Good Question/Topic? 0
  • +

Page 1 of 1