Welcome To Snipplr


Everyone's Recent Apache Snippets Tagged htaccess



This is if you have multiple domains pointed to the same directory on a server.
1 1140 posted 15 years ago by batfan
Placing this in a .htaccess file in a sub folder you disable password security for this folder.
2 1896 posted 15 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 1282 posted 15 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 1086 posted 15 years ago by beneberle
This conent points the user to a certain file or directory based on his language settings
0 896 posted 15 years ago by steho
2 1167 posted 15 years ago by steho
# minimize image flicker in IE6
0 1017 posted 15 years ago by steho
## If visitor calls directory only, i.e. /en/ ## he will be forwarded to the index.php in this folder ## as directory listing is deactivated
0 1134 posted 15 years ago by steho
Changes domainname.tld into www.domainname.tld
1 1039 posted 15 years ago by steho
Protects htaccess file to be read
0 1044 posted 15 years ago by steho
This code will redirect all requests to a maintenance page
0 992 posted 15 years ago by IvoTrompert
0 987 posted 15 years ago by batfan
I borrowed the script from the Dreamhost-wiki and did a minor change towards any folder.
0 957 posted 15 years ago by koko
0 921 posted 15 years ago by stuntsnippets
This is good for ensuring your domain is always either accessed with or without the www, which is important for SEO. It is also good if you have multiple domains that should resolve to the same site, and can redirect all requests to the main domain.
2 1210 posted 15 years ago by beneberle
1 1019 posted 15 years ago by jmacgr
block evil incarnate query strings
0 937 posted 15 years ago by j4kp07
Currently, multisite is easiest to setup under the following conditions: 1) WordPress for main site installed in the root directory 2) Each additional network site is created in its own subdirectory
0 1050 posted 15 years ago by j4kp07
1 988 posted 15 years ago by bluematt