Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 32 lines (23 sloc) 0.838 kB
237b958 @remy popout image
remy authored
1 php_flag magic_quotes_gpc Off
2
b0b3524 @remy You may choose to remove this, but this change now means that the exi…
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 Removed hard coded /3/ in rewritebase
remy authored
8 RewriteBase /
b0b3524 @remy You may choose to remove this, but this change now means that the exi…
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 fixed htaccess to support subdirs - need to test more, but looking solid
remy authored
14 # role a sprocket for offline and debug
82376e4 @remy Move php to own directory
remy authored
15 RewriteRule js\/debug\/.*\.js$ php/sprocketize.php [QSA,L]
0dddab0 @remy 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 Making the debugger better and patching in the backend to save code a…
remy authored
31 </IfModule>
Something went wrong with that request. Please try again.