Welcome To Snipplr


Everyone's Recent Apache Snippets



1 ... 5 6 7 8 9
Tested with [ipotpal.bgurl.org](http://ipotpal.bgurl.org/ "ипотпал")
0 666 posted 15 years ago by jommy
0 643 posted 15 years ago by paulbooker
1 602 posted 15 years ago by jnbn
Redirects visitors of a webpage to a specific URL while allowing access for specified IP-addresses.
3 741 posted 15 years ago by dertimbo
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 688 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 1523 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 939 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 699 posted 15 years ago by occam
Needed to retire a staging domain, so I'm redirected all traffic to the equivalent page in the root directory in the .htaccess file
1 805 posted 15 years ago by canarymason
These tweaks improved my Yslow score from F to B.
1 811 posted 15 years ago by zachharkey
3 849 posted 15 years ago by sveggiani
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 948 posted 15 years ago by iloveitaly
1 743 posted 15 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 886 posted 15 years ago by kwilson
2 744 posted 15 years ago by cuscus1986
enable and disable sites and modules in apache 2
0 31295 posted 15 years ago by stiobhart
1 685 posted 15 years ago by dennyhalim
2 672 posted 15 years ago by dennyhalim
long htaccess expired header for all files except for server side scripts
2 935 posted 15 years ago by dennyhalim
Just insert it into your .htaccess file to redirect all your 404 error pages to any address
2 829 posted 15 years ago by caruso_g
In MODx, insert below: # The Friendly URLs part RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
2 810 posted 15 years ago by hotdiggity
A more generic and portable snippet
4 817 posted 15 years ago by dertimbo
My [original post](http://drupal.org/node/84895) languished for years before someone pointed out a possible solution [here](http://drupal.org/node/53705). The following user-submitted code may be useful in redirecting URLs for the /files directory...
0 793 posted 15 years ago by zachharkey
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 581 posted 15 years ago by jackkeller
Increases the memory limit of php and html files.
4 1297 posted 15 years ago by zachharkey
3 908 posted 15 years ago by erik
1 ... 5 6 7 8 9