Welcome To Snipplr


Everyone's Recent Apache Snippets Tagged apache



1 831 posted 15 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 1047 posted 15 years ago by jink
To force the user to download certain filetypes in the current directory.
0 1265 posted 15 years ago by darylclaudio
ready for .htaccess, creates 302 temp redirect
0 990 posted 15 years ago by nate63179
Tested with [ipotpal.bgurl.org](http://ipotpal.bgurl.org/ "ипотпал")
0 890 posted 15 years ago by jommy
0 872 posted 15 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 929 posted 15 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 1821 posted 15 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 1209 posted 15 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 916 posted 15 years ago by occam
These tweaks improved my Yslow score from F to B.
1 1070 posted 15 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 1205 posted 15 years ago by iloveitaly
1 960 posted 16 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 1133 posted 16 years ago by kwilson
2 981 posted 16 years ago by cuscus1986
Just insert it into your .htaccess file to redirect all your 404 error pages to any address
2 1137 posted 16 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 824 posted 16 years ago by jackkeller
3 1156 posted 16 years ago by erik
1 909 posted 16 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 796 posted 16 years ago by sebus
0 876 posted 16 years ago by hdanniel