   isCustomPreview = req.cookies["custom-partials-preview-mode"]
   path            = if section then "#{name}/#{section}" else name
 
-  return res.redirect 302, req.url.substring 7  if name in ['koding', 'guests']
+  return res.redirect 301, req.url.substring 7  if name in ['koding', 'guests']
 
   # Checks if its an internal request like /Activity, /Terminal ...
   #

  if isInAppRoute name

    if name is 'Develop'
      return res.redirect 302, '/Terminal'

    if name in ['Activity', 'Topics']


    else "/#!#{urlOnly}#{query}"

  res.header 'Location', redirectTo
  res.send 301

app.listen webPort
console.log '[WEBSERVER] running', "http://localhost:#{webPort} pid:#{process.pid}"
