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
1568
.HTACCESS - Administrator Email for ErrorDocument
Apache
0
4
1550
.HTACCESS - Force "File Save As" Prompt
Apache
0
3
1625
.HTACCESS - Show CGI Source Code
Apache
0
2
1639
.HTACCESS - Rewrite to www
Apache
0
2
1975
.HTACCESS - Custom ErrorDocuments
Apache
0
2
1531
.HTACCESS - Send Custom Headers
Apache
0
1
1667
.HTACCESS - Blocking based on User-Agent Header
Apache
0
2
1543
.HTACCESS - Protect wp-content
Apache
0
4
1529
.HTACCESS - Protect wp-includes
Apache
0
1
1542
.HTACCESS - Stop Hotlinking
Apache
0
1
1518
.HTACCESS - Forbid Proxies
Apache
0
3
1556
.HTACCESS - No UserAgent, No POST
Apache
0
1
1513
.HTACCESS - No Referer, No Comment
Apache
0
2
1634
.HTACCESS - Removing the Query String
Apache
0
1
1480
.HTACCESS - Removing the Query String
Apache
0
1
1426
.HTACCESS - Loop Stopping Code
Apache
0
1
1656
.HTACCESS - Deny access to anything in a subfolder except php fopen
Apache
0
2
1449
.HTACCESS - External Redirect .php files to .html files (SEO friendly)
Apache
0
5
1774
.HTACCESS - Internal Redirect .php files to .html files (SEO friendly)
Apache
0
2
2309
.HTACCESS - Block access to files during certain hours of the day
Apache
0
4
1576
.HTACCESS - Allow only GET and PUT methods
Apache
0
1
1847
.HTACCESS - Read Apache Variables in PHP
Apache
0
2
1849
.HTACCESS - Require characters in request
Apache
0
2
1581
.HTACCESS - Example 1
Apache
0
1
1668
.HTACCESS - Example 2
Apache
0
2
2190
.HTACCESS - Example 3 - MOD_REWRITE
Apache
0
1
1557
.HTACCESS - Example 4
Apache
0
5
1789
.HTACCESS - Example 5 - roots/wp-h5bp-htaccess
Apache
0
11
2399