Welcome To Snipplr


Everyone's Recent Apache Snippets Tagged htaccess



Replace "mysite" with your own and this will block access to sites attempting to link to your images. Note, it's not necessarily always a bad thing for people to link to your images. If you run a blog, portfolio, or sales gallery, etc, you may actual...
2 1385 posted 15 years ago by josephknight
The problem As a WordPress user, you probably know how important the wp-config.php file is. This file contains all of the information required to access your precious database: username, password, server name and so on. Protecting the wp-config.php...
0 1199 posted 15 years ago by josephknight
The problem Protecting dynamic websites is especially important. Most developers always protect their GET and POST requests, but sometimes this is not enough. We should also protect our blog against script injections and any attempt to modify the PH...
3 1445 posted 15 years ago by josephknight
0 933 posted 15 years ago by jeromegamez
1 1081 posted 15 years ago by blpgirl
0 950 posted 15 years ago by blpgirl
script will now be treated as a PHP file. Similarly, x-httpd-cgi for CGI files, etc.
2 982 posted 15 years ago by blpgirl
0 1139 posted 15 years ago by vigoncas
Removes trailing slashes from URLs, forces all urls to index.php
0 997 posted 15 years ago by mattkenefick
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 1156 posted 15 years ago by jink
Before taking a site "live", I password protect it except the robots.txt for search engines and custom Error pages. You can adapt this to your own use and add other pages in the FilesMatch directive.
0 1040 posted 15 years ago by abbey
To force the user to download certain filetypes in the current directory.
0 2105 posted 15 years ago by darylclaudio
If you want to force someone to download a file instead of opening it in their browser, use this code.
1 2328 posted 15 years ago by jrobinsonc
Hacer una redireccion permanente
0 965 posted 15 years ago by jrobinsonc
0 1040 posted 15 years ago by jrobinsonc
Esto setea todas las opciones menos *Indexes* que es la que permite que los ficheros y directorios sean mostrados cuando no hay un *index.html* en un directorio.
0 885 posted 15 years ago by jrobinsonc
1 1214 posted 15 years ago by blaz
Redirect to a subfolder (blog) in a search engine friendly way using .htaccess. Change “YourDomain.com” to your domain name.
1 1348 posted 15 years ago by math89
0 841 posted 15 years ago by twobon
1 860 posted 15 years ago by jnbn