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
Sort
Popular
Most liked
Most recent
Time
Today
Last week
Last month
Last year
All time
Select Languages
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
ColdFusion
Command
CSS
Delphi
Django
Grunt
Gulp
HAML
HTML
iOS
Jade
Java
JavaScript
jQuery
Less
MySQL
Objective
Other
Pascal
Perl
PHP
PowerShell
Processing
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
Smarty
SQL
Swift
VHDL
XHTML
XML
Xojo
XSLT
SCSS
CoffeeScript
GLSL
Progress
Stylus
ES6
Coffee
TypeScript
X++
Haskell
SmallBASIC
JSX
SVG
Plain text
LUA
MDX
Apply
Reset
popular • Apache
.htaccess universal redirect
Apache
0
4
3043
.htaccess Maintenance Redirect
Apache
0
1
2390
Very Simple Reverse Proxy by Apache2.2
Apache
0
0
2281
.htaccess starter for wordpress
Apache
0
4
3082
Force www - .htaccess
Apache
0
0
1692
Force www in a Generic Way - .htaccess
Apache
0
0
1647
Force non-www - .htaccess
Apache
1
0
1640
Force non-www in a Generic Way - .htaccess
Apache
0
1
1658
Force HTTPS - .htaccess
Apache
0
3
1693
Force HTTPS Behind a Proxy - .htaccess
Apache
1
1
1678
Force Trailing Slash - .htaccess
Apache
0
1
1597
Redirect a Single Page - .htaccess
Apache
0
4
1624
Alias a Single Directory - .htaccess
Apache
0
0
1600
Alias Paths To Script - .htaccess
Apache
1
0
1789
Redirect an Entire Site - .htaccess
Apache
1
5
1746
Alias "Clean" URLs - .htaccess
Apache
1
2
2014
Deny All Access - .htaccess
Apache
2
0
1741
Deny All Access Except Yours - .htaccess
Apache
1
3
1689
Allow All Access Except Spammers' - .htaccess
Apache
0
1
1636
Deny Access to Hidden Files and Directories - .htaccess
Apache
2
2
1683