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
Apache snippets by Hardik Shah
Force www - .htaccess
Apache
0
0
1695
Force www in a Generic Way - .htaccess
Apache
0
0
1652
Force non-www - .htaccess
Apache
1
0
1648
Force non-www in a Generic Way - .htaccess
Apache
0
1
1662
Force HTTPS - .htaccess
Apache
0
3
1694
Force HTTPS Behind a Proxy - .htaccess
Apache
1
1
1681
Force Trailing Slash - .htaccess
Apache
0
1
1603
Redirect a Single Page - .htaccess
Apache
0
4
1628
Alias a Single Directory - .htaccess
Apache
0
0
1602
Alias Paths To Script - .htaccess
Apache
1
0
1791
Redirect an Entire Site - .htaccess
Apache
1
5
1747
Alias "Clean" URLs - .htaccess
Apache
1
2
2016
Deny All Access - .htaccess
Apache
2
0
1744
Deny All Access Except Yours - .htaccess
Apache
1
3
1692
Allow All Access Except Spammers' - .htaccess
Apache
0
1
1639
Deny Access to Hidden Files and Directories - .htaccess
Apache
2
2
1687
Deny Access to Backup and Source Files - .htaccess
Apache
1
1
1320
Disable Directory Browsing - .htaccess
Apache
0
1
1283
Disable Image Hotlinking - .htaccess
Apache
0
2
1351
Password Protect a File or Several Files - .htaccess
Apache
0
1
1338