30 Popular .htaccess code snippets (.Htaccess Code Snippets, Examples, Tips And Tricks)

RussianRoot 28/06/2013 0
30 Popular .htaccess code snippets (.Htaccess Code Snippets, Examples, Tips And Tricks)

“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„. (FromWikipedia) The .htaccess method will only effect the folder in which the .htaccess file resides, and all the folders inside. The .htaccess file is very useful and allows you to do a lot of things… Here’s my list of the most popular htaccess code snippets that can be added to your .htaccess file. I hope you find them as useful as I do.

.Htaccess Code Snippets, Examples, Tips And Tricks

01. Protect WordPress Blog From Script Injections

02. Prevent Hotlinking

03. Configure Your Website For HTML5 Videos

04. Use Browser Caching To Improve Blog Speed

05. Blacklist Undesired Users And Bots Ip Address

06. Redirect Hotlinkers

07. Force Trailing Slash

08. Remove File Extensions From Urls

09. If You Want To Cover Both Http And Https

10. Create Custom Error Pages

11. Log PHP Errors

12. Redirect WordPress Feeds To FeedBurner

13. Force Download Of Specific Files

14. Require Password For 1 File

15. Protect Multiple Files

16. Compress Text Files

17. Expire Headers

18. Cache-Control Headers

19. Turn ETags Off

20. Remove Last-Modified Header

21. Banning A WordPress Spammer With .Htaccess

22. How To: Deny Comment Posting To No Referrer Requests

23. Redirect Www To Non Www Or Vice Versa

24. Block Referring Domains

25. Redirect Visitors To A Maintenance Page

26. Allow Only Your IP Adress On The Wp-Admin Directory

27. Password-Protect Single File

28. Password-Protect Multiple Files

29. Redirect Any Request For Anything From Spamsite To Differentspamsite

30. Speed Up Your Site With .Htaccess Caching

31. Redirect All WordPress Feeds To Feedburner

32. Stop Spam On Your WordPress Blog

33. Deny Access To Your Wp-Config.Php File

34. Securing The .Htaccess


Leave A Response »

+ 6 = 11

Warning: require_once(/www/htdocs/w00e1ca9/domainpool/russianroot.net): failed to open stream: No such file or directory in /www/htdocs/w00e1ca9/domainpool/russianroot.net/wp-content/themes/aven/footer.php on line 48

Fatal error: require_once(): Failed opening required '' (include_path='.:/usr/share/php:..') in /www/htdocs/w00e1ca9/domainpool/russianroot.net/wp-content/themes/aven/footer.php on line 48