Created
September 16, 2013 12:41
-
-
Save validkeys/6580200 to your computer and use it in GitHub Desktop.
htaccess
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] | |
| RewriteRule .* - [env=HTTP_KUSH_KEY:%{HTTP:X-KUSH-KEY},last] | |
| </IfModule> | |
| <IfModule mod_headers.c> | |
| SetEnvIf Origin "http(s)?://(www\.)?(localhost:8888|localhost:9000|kyle.local:8888|kyle.local:9000|kyleair.local:9000|src.cdn.kushapp.com.s3.amazonaws.com)$" AccessControlAllowOrigin=$0$1 | |
| Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS" | |
| Header add Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, X-Kush-Key" | |
| </IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment