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
1798
Force www in a Generic Way - .htaccess
Apache
0
0
1763
Force non-www - .htaccess
Apache
1
0
1739
Force non-www in a Generic Way - .htaccess
Apache
0
1
1767
Force HTTPS - .htaccess
Apache
0
3
1770
Force HTTPS Behind a Proxy - .htaccess
Apache
1
1
1772
Force Trailing Slash - .htaccess
Apache
0
1
1692
Redirect a Single Page - .htaccess
Apache
0
4
1711
Alias a Single Directory - .htaccess
Apache
0
0
1693
Alias Paths To Script - .htaccess
Apache
1
0
1896
Redirect an Entire Site - .htaccess
Apache
1
5
1831
Alias "Clean" URLs - .htaccess
Apache
1
2
2119
Deny All Access - .htaccess
Apache
2
0
1850
Deny All Access Except Yours - .htaccess
Apache
1
3
1787
Allow All Access Except Spammers' - .htaccess
Apache
0
1
1733
Deny Access to Hidden Files and Directories - .htaccess
Apache
2
2
1788
Deny Access to Backup and Source Files - .htaccess
Apache
1
1
1413
Disable Directory Browsing - .htaccess
Apache
0
1
1363
Disable Image Hotlinking - .htaccess
Apache
0
2
1432
Password Protect a File or Several Files - .htaccess
Apache
0
1
1426