Welcome To Snipplr


Everyone's Recent Apache Snippets Tagged apache



1 500 posted 14 years ago by level09
Use this rewrite rule to enable permalinks on a host. Used when Wordpress doesn't write the conditions correctly (like on a host I am testing with).
0 649 posted 14 years ago by jink
To force the user to download certain filetypes in the current directory.
0 843 posted 14 years ago by darylclaudio
ready for .htaccess, creates 302 temp redirect
0 630 posted 14 years ago by nate63179
Tested with [ipotpal.bgurl.org](http://ipotpal.bgurl.org/ "ипотпал")
0 527 posted 14 years ago by jommy
0 508 posted 14 years ago by paulbooker
Great little bit of code for if you are rewriting URLs but then want the old GET URLs to rewrite to their rewritten URLs (phew). Good for telling Google where the new pages are with a 301 rather than getting both indexed. In this example, i had a...
0 546 posted 14 years ago by roflman79
This line can be added to 'backend', 'frontend', 'listen' directives in the HAProxy config. It will redirect all requests for /books/mysql to /books.php?title=mysql
0 1305 posted 14 years ago by alexwilliams
In this example: *rewrite urls from domain.com to www.domain.com* This is somewhat documented elsewhere, but not very well, so here's an example on how to perform simple URL rewriting with HAProxy (instead of using mod_rewrite with apache)....
0 762 posted 14 years ago by alexwilliams
In addition to the recommendations on the Wordpress Website. Limit the amount of PHP files that a writable by Apache. The directory's and files that need to be writable, do not always need to be executed by PHP directly. This makes it a bit har...
1 545 posted 14 years ago by occam
These tweaks improved my Yslow score from F to B.
1 630 posted 14 years ago by zachharkey
Combine this with the my compression script and things load real fast. I think I pulled some of this code of a site on google... can't claim complete credit.
0 796 posted 14 years ago by iloveitaly
1 581 posted 14 years ago by paulbooker
Due to widespread internet blocking in Iran following the June 2009 election, a network of proxy servers was set up to assist in the free flow of information. The IP range, to the best of my knowledge, should cover the addresses used in Iran, with bl...
0 727 posted 14 years ago by kwilson
2 601 posted 14 years ago by cuscus1986
Just insert it into your .htaccess file to redirect all your 404 error pages to any address
2 647 posted 15 years ago by caruso_g
This is a little trick I've used a few times to emulate Folders on a site and drop the extensions. In this example I'm using a PHP site but could easily be ported for other file types. One caveat to look out for is files will not always want to be ca...
1 452 posted 15 years ago by jackkeller
3 759 posted 15 years ago by erik
1 532 posted 15 years ago by iTony
Le hotlinking d'image consiste selon wikipédia : "à utiliser l'adresse d'un fichier publié sur un site web, le plus souvent une image, pour l'afficher sur un autre site, sur un blog, dans un forum, etc. En d'autres termes, au lieu d'enregistrer l'...
0 461 posted 15 years ago by sebus
0 511 posted 15 years ago by hdanniel