 		# if we aren't do a permanent redirect
 		url = document.get('url')
 		if url isnt pageUrl
-			console.log(url, url.indexOf?);
 			return res.redirect(301,url)
 
 		# Serve the document to the user
 		docpad.serveDocument({document,req,res,next})
 
-	# Server Middelware: 404
+	# Server Middleware: 404
 	serverMiddleware404: (req,res,next) =>
 		# Prepare
 		docpad = @


				# Perform the reload of the selected files
				docpad.loadFiles {collection:filesToReload}, (err) ->
					return next(err)  if err

					# Create a collection for the files to render
					filesToRender = opts.filesToRender or new FilesCollection()

		maxAge: 86400000

		# Which middlewares would you like us to activate
		# The standard middlewares (bodePArser, methodOverride, express router)
		middlewareStandard: true
		# The standard bodyParser middleware
		middlewareBodyParser: true
		# The standard methodOverride middleware
		middlewareMethodOverride: true
		# The standard express router middleware
		middlewareExpressRouter: true
		# Our own 404 middleware
		middleware404: true
		# Our own 500 middleware
