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
1574
Force www in a Generic Way - .htaccess
Apache
0
0
1523
Force non-www - .htaccess
Apache
1
0
1512
Force non-www in a Generic Way - .htaccess
Apache
0
1
1541
Force HTTPS - .htaccess
Apache
0
3
1584
Force HTTPS Behind a Proxy - .htaccess
Apache
1
1
1573
Force Trailing Slash - .htaccess
Apache
0
1
1486
Redirect a Single Page - .htaccess
Apache
0
4
1514
Alias a Single Directory - .htaccess
Apache
0
0
1504
Alias Paths To Script - .htaccess
Apache
1
0
1677
Redirect an Entire Site - .htaccess
Apache
1
5
1630
Alias "Clean" URLs - .htaccess
Apache
1
2
1918
Deny All Access - .htaccess
Apache
2
0
1618
Deny All Access Except Yours - .htaccess
Apache
1
3
1575
Allow All Access Except Spammers' - .htaccess
Apache
0
1
1515
Deny Access to Hidden Files and Directories - .htaccess
Apache
2
2
1567
Deny Access to Backup and Source Files - .htaccess
Apache
1
1
1232
Disable Directory Browsing - .htaccess
Apache
0
1
1193
Disable Image Hotlinking - .htaccess
Apache
0
2
1253
Password Protect a File or Several Files - .htaccess
Apache
0
1
1249