We have the Best Collection of Code for your functions.php file thread, so I thought that it might be useful to create a thread for our .htaccess files.
AND PLEASE REMEMBER TO ADD ANY OF YOUR OWN SNIPPETS TO THIS LIST
|
We have the Best Collection of Code for your functions.php file thread, so I thought that it might be useful to create a thread for our .htaccess files. AND PLEASE REMEMBER TO ADD ANY OF YOUR OWN SNIPPETS TO THIS LIST |
|||||
|
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.
|
These are 3 snippet for better performance, regarding Yahoo! rules: Disable Etags:
Add expire headers:
Or
Compress plain text file:
Read more about them here. Updated: Redirect requests to www domain
Block request to xmlrpc.php Use this only when you don't use remote publishing as it can prevent your blog from hacks.
Redirect all feeds to feedburner
|
|||||||||||||
|
|
This is something more secured i hop you like this
|
||||
|
|
|
Some basic Security stuff.
|
||||
|
|
|
ERRATA
|
|||||
|
|
GZip compression GZip compression
|
||||
|
|
Better rewrite rules for WordPress permalinksBy default WordPress sends a 404 HTML page for missing images and stylesheets – they are never rendered by a browser. And it catches your symbolic links.
|
||||
Redirects and pretty permalinks without mod_rewrite
|
||||