Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 32 lines (23 sloc) 0.838 kb
237b958 Remy Sharp popout image
remy authored
1 php_flag magic_quotes_gpc Off
2
b0b3524 Remy Sharp You may choose to remove this, but this change now means that the existi...
remy authored
3 <IfModule mod_rewrite.c>
4
5 # $Id: .htaccess,v 1.3 2006/11/09 09:08:14 remy Exp $
6 Options +FollowSymLinks +ExecCGI
7 RewriteEngine On
8350c54 Remy Sharp Removed hard coded /3/ in rewritebase
remy authored
8 RewriteBase /
b0b3524 Remy Sharp You may choose to remove this, but this change now means that the existi...
remy authored
9
10 # strip www. from the domain
11 RewriteCond %{HTTP_HOST} ^www\.jsbin\.com$ [NC]
12 RewriteRule ^(.*)$ http://jsbin.com/$1 [R=301,L]
13
0dddab0 Remy Sharp fixed htaccess to support subdirs - need to test more, but looking solid
remy authored
14 # role a sprocket for offline and debug
82376e4 Remy Sharp Move php to own directory
remy authored
15 RewriteRule js\/debug\/.*\.js$ php/sprocketize.php [QSA,L]
0dddab0 Remy Sharp fixed htaccess to support subdirs - need to test more, but looking solid
remy authored
16
17 # if the file or directory exists
18 RewriteCond %{REQUEST_FILENAME} -d [OR]
19 RewriteCond %{REQUEST_FILENAME} -f
20 RewriteRule .* - [L]
21
22 RewriteCond %{REQUEST_FILENAME}.html -f
23 RewriteRule ^(.*)$ $1.html [L]
24
25 # this makes serves up the public asset if it exists
26 RewriteCond public/$1 -F
27 RewriteRule ^(.*)$ public/$1 [QSA,L]
28
29 # using 'index.php' because it forces a '/' request to the handler
30 RewriteRule ^(.*)$ index.php [QSA,L]
3834fbb Remy Sharp Making the debugger better and patching in the backend to save code as p...
remy authored
31 </IfModule>
Something went wrong with that request. Please try again.