Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
.htaccess
29
snippets by
Jesse Graupmann
.HTACCESS - Redirect Everyone Except IP address to alternate page
Apache
0
2
1551
.HTACCESS - Administrator Email for ErrorDocument
Apache
0
4
1533
.HTACCESS - Force "File Save As" Prompt
Apache
0
3
1606
.HTACCESS - Show CGI Source Code
Apache
0
2
1622
.HTACCESS - Rewrite to www
Apache
0
2
1956
.HTACCESS - Custom ErrorDocuments
Apache
0
2
1514
.HTACCESS - Send Custom Headers
Apache
0
1
1648
.HTACCESS - Blocking based on User-Agent Header
Apache
0
2
1528
.HTACCESS - Protect wp-content
Apache
0
4
1512
.HTACCESS - Protect wp-includes
Apache
0
1
1524
.HTACCESS - Stop Hotlinking
Apache
0
1
1503
.HTACCESS - Forbid Proxies
Apache
0
3
1536
.HTACCESS - No UserAgent, No POST
Apache
0
1
1498
.HTACCESS - No Referer, No Comment
Apache
0
2
1617
.HTACCESS - Removing the Query String
Apache
0
1
1464
.HTACCESS - Removing the Query String
Apache
0
1
1408
.HTACCESS - Loop Stopping Code
Apache
0
1
1638
.HTACCESS - Deny access to anything in a subfolder except php fopen
Apache
0
2
1435
.HTACCESS - External Redirect .php files to .html files (SEO friendly)
Apache
0
5
1760
.HTACCESS - Internal Redirect .php files to .html files (SEO friendly)
Apache
0
2
2289
.HTACCESS - Block access to files during certain hours of the day
Apache
0
4
1561
.HTACCESS - Allow only GET and PUT methods
Apache
0
1
1829
.HTACCESS - Read Apache Variables in PHP
Apache
0
2
1830
.HTACCESS - Require characters in request
Apache
0
2
1561
.HTACCESS - Example 1
Apache
0
1
1651
.HTACCESS - Example 2
Apache
0
2
2169
.HTACCESS - Example 3 - MOD_REWRITE
Apache
0
1
1539
.HTACCESS - Example 4
Apache
0
5
1769
.HTACCESS - Example 5 - roots/wp-h5bp-htaccess
Apache
0
11
2377