Welcome To Snipplr


Everyone's Recent Apache Snippets



1 2 3 4 5 6 ... 9
A default HTAccess file. Uncomment any lines that you want to use. http://enarion.net/web/htaccess/trailing-slash/
1 771 posted 14 years ago by BFTrick
Desired effect is\\r\\n\\r\\nhttp://www.somedomain.com/blog/\\r\\nhttp://www.somedomain.com/blog/tag/\\r\\nhttp://www.somedomain.com/blog/page/2/
2 702 posted 14 years ago by lixonic
1 1165 posted 14 years ago by iloveitaly
List all FTP users on server
0 837 posted 14 years ago by fillyouin
use this to find all files/folders which have been given 777 (write all) permissions on a linux server
1 733 posted 14 years ago by fillyouin
0 806 posted 14 years ago by Orlandoo
Are you as tired as me of the default layout of 404 error pages? Well now you can easily create your own and refer to it like this:
4 869 posted 14 years ago by Orlandoo
If you've transferred domain names or wish to redirect a specific page or pages without getting penalty from search engines such as Google, use the following code:
2 727 posted 14 years ago by Orlandoo
If for some reason you would want to deny everyone or allow only a specific group of IP addresses to access your website, add the following code to your .htaccess file:
3 865 posted 14 years ago by Orlandoo
It's possible to block all unwanted user agents that might be potentially harmful or perhaps just to keep the server load as low as possible.
1 808 posted 14 years ago by Orlandoo
Tired of people using your bandwidth by putting the images hosted on your server on their website? Add the following code at the bottom of your .htaccess file to prevent hotlinking.
4 856 posted 14 years ago by Orlandoo
This code redirects all external traffic (all traffic not belonging to a particular ip) to a temp page. This is useful for performing site maintenance.
2 983 posted 14 years ago by BFTrick
Make file not found redirect to new host.
2 961 posted 14 years ago by pntruongphuc
how to get your apache error log
0 919 posted 14 years ago by adriamooney
Creates a self-signed SSL Key for use on a Windows development server. Instructions: http://dpaste.com/237670/
1 795 posted 14 years ago by zonetrooperex
This is if you have multiple domains pointed to the same directory on a server.
1 917 posted 14 years ago by batfan
Placing this in a .htaccess file in a sub folder you disable password security for this folder.
2 955 posted 14 years ago by arnekolja
<p>Method 1</p> <p>The -c directive creates a file .htpass in the directory somepath/outside/of/root/ containing a username user1. The -b directive means you must supply the password password1 at the command line when running the command - not rec...
3 1002 posted 14 years ago by beneberle
Put this in an .htaccess file to protect the directory it is in and anything below it. This requires that a file named .passwdfile exists in the directory \\\"/full/path/to/\\\" and contains at least one username/password combination.\\r\\n\\r\\nUse...
2 792 posted 14 years ago by beneberle
1 2 3 4 5 6 ... 9