Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 952bfb43c4
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (23 sloc) 0.838 kb
php_flag magic_quotes_gpc Off
<IfModule mod_rewrite.c>
# $Id: .htaccess,v 1.3 2006/11/09 09:08:14 remy Exp $
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteBase /
# strip www. from the domain
RewriteCond %{HTTP_HOST} ^www\.jsbin\.com$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]
# role a sprocket for offline and debug
RewriteRule js\/debug\/.*\.js$ php/sprocketize.php [QSA,L]
# if the file or directory exists
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .* - [L]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html [L]
# this makes serves up the public asset if it exists
RewriteCond public/$1 -F
RewriteRule ^(.*)$ public/$1 [QSA,L]
# using 'index.php' because it forces a '/' request to the handler
RewriteRule ^(.*)$ index.php [QSA,L]
Jump to Line
Something went wrong with that request. Please try again.