I’m performing a 301 redirect of some of the URLs on my Meteor App, the redirect works fine when i check in the browser, but google is seeing them as 504 server errors !!!? Robots.txt is not the issue.
On the server i am doing something similar to the following (I have simplified it for the example here- as the actual case involved a database lookup based on the request)
You might try rewriting if (newUrl != undefined){ as if (newUrl){, since undefined can actually be redefined and no longer be undefined! Alternatively use, if (typeof newUrl !== 'undefined'){.
However, in all honesty, that’s clutching at straws.