Welcome To Snipplr


Everyone's Recent Snippets Tagged htaccess



1 ... 4 5 6 7 8 9
Protects htaccess file to be read
0 316 posted 11 years ago by steho
This code will redirect all requests to a maintenance page
0 311 posted 11 years ago by IvoTrompert
0 288 posted 11 years ago by batfan
I borrowed the script from the Dreamhost-wiki and did a minor change towards any folder.
0 281 posted 11 years ago by koko
0 266 posted 11 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 312 posted 11 years ago by beneberle
1 281 posted 11 years ago by jmacgr
block evil incarnate query strings
0 283 posted 11 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 308 posted 11 years ago by j4kp07
1 286 posted 11 years ago by bluematt
Apache can be used to ban undesirable people and bots from your website. With this code, we’re telling Apache that everyone is allowed to visit our blog except the person with the IP addresses
1 324 posted 11 years ago by mariusscheel
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 358 posted 11 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 334 posted 11 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 401 posted 11 years ago by josephknight
0 263 posted 11 years ago by jeromegamez
1 284 posted 11 years ago by blpgirl
0 274 posted 11 years ago by blpgirl
script will now be treated as a PHP file. Similarly, x-httpd-cgi for CGI files, etc.
2 272 posted 11 years ago by blpgirl
Add and remove www to urls through .htaccess with mod_rewrite
1 455 posted 11 years ago by ginoplusio
Redirects all calls to mp3 files to a proxy (usefull fr example to track stats on db) the +FollowSymlinks should be already setted, but if it isnt' this setting with use it. FollowSymlinks must be on to use the rewrite engine.
0 622 posted 11 years ago by ginoplusio
A member of Wordpress community says: I placed this code on my site and it instantly cut my page load times from 4-8 seconds per page (and typically on the high end of that) down to 1-3 seconds per page and EVERYTHING on my site works as it did befor...
1 330 posted 11 years ago by LuckyShot
0 372 posted 11 years ago by vigoncas
1 ... 4 5 6 7 8 9