Welcome To Snipplr


Everyone's Recent Apache Snippets



1 ... 5 6 7 8 9
Tested with [ipotpal.bgurl.org](http://ipotpal.bgurl.org/ "ипотпал")
0 521 posted 14 years ago by jommy
0 504 posted 14 years ago by paulbooker
1 474 posted 14 years ago by jnbn
Redirects visitors of a webpage to a specific URL while allowing access for specified IP-addresses.
3 596 posted 14 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 542 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 1293 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 754 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 539 posted 14 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 634 posted 14 years ago by canarymason
These tweaks improved my Yslow score from F to B.
1 624 posted 14 years ago by zachharkey
3 683 posted 14 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 788 posted 14 years ago by iloveitaly
1 576 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 720 posted 14 years ago by kwilson
2 593 posted 14 years ago by cuscus1986
enable and disable sites and modules in apache 2
0 30265 posted 14 years ago by stiobhart
1 544 posted 14 years ago by dennyhalim
2 514 posted 14 years ago by dennyhalim
long htaccess expired header for all files except for server side scripts
2 761 posted 14 years ago by dennyhalim
Just insert it into your .htaccess file to redirect all your 404 error pages to any address
2 640 posted 15 years ago by caruso_g
In MODx, insert below: # The Friendly URLs part RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
2 639 posted 15 years ago by hotdiggity
A more generic and portable snippet
4 663 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 658 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 444 posted 15 years ago by jackkeller
Increases the memory limit of php and html files.
4 1094 posted 15 years ago by zachharkey
3 751 posted 15 years ago by erik
1 ... 5 6 7 8 9