title: Socket.io - Redirects to index.html, not .php
body: <p>I have created really basic application on Laravel &amp; Socket.io but I have a problem.<br>
  In root dir of app I have file <strong>app.js</strong> - here is code:  </p>
  
  <pre><code>var app = require('http').createServer(handler);
  var io = require('socket.io')(app);
  
  var Redis = require('ioredis');
  var redis = new Redis();
  
  app.listen(8000, function() {
      console.log('Server is running!');
  });
  
  function handler(req, res) {
      res.writeHead(200);
      res.end('');
  }
  
  io.on('connection', function(socket) {
      //
  });
  
  redis.psubscribe('*', function(err, count) {
      //
  });
  
  redis.on('pmessage', function(subscribed, channel, message) {
      message = JSON.parse(message);
      io.emit(channel + ':' + message.event, message.data);
  });
  </code></pre>
  
  <p>And it redirect to public/ directory - ok, but he won't 'look' on index.<strong>php</strong> only on index.<strong>html</strong> - when I remove index.html, I have a blank page - where is problem?<br>
  Here is URL: <a href="http://socket.vertisan.usermd.net/" rel="nofollow">http://socket.vertisan.usermd.net/</a></p>