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
3062
.htaccess Maintenance Redirect
Apache
0
1
2415
Very Simple Reverse Proxy by Apache2.2
Apache
0
0
2302
.htaccess starter for wordpress
Apache
0
4
3099
Force www - .htaccess
Apache
0
0
1711
Force www in a Generic Way - .htaccess
Apache
0
0
1671
Force non-www - .htaccess
Apache
1
0
1662
Force non-www in a Generic Way - .htaccess
Apache
0
1
1680
Force HTTPS - .htaccess
Apache
0
3
1711
Force HTTPS Behind a Proxy - .htaccess
Apache
1
1
1698
Force Trailing Slash - .htaccess
Apache
0
1
1616
Redirect a Single Page - .htaccess
Apache
0
4
1643
Alias a Single Directory - .htaccess
Apache
0
0
1622
Alias Paths To Script - .htaccess
Apache
1
0
1811
Redirect an Entire Site - .htaccess
Apache
1
5
1765
Alias "Clean" URLs - .htaccess
Apache
1
2
2039
Deny All Access - .htaccess
Apache
2
0
1762
Deny All Access Except Yours - .htaccess
Apache
1
3
1707
Allow All Access Except Spammers' - .htaccess
Apache
0
1
1656
Deny Access to Hidden Files and Directories - .htaccess
Apache
2
2
1705