1
  • My website is running on node.js and runs in http on port 3000
  • I am using NGINX to enable https access so that all pages are served as https
  • I have placed my sitemap.xml and robots.txt inside the public folder of my express app
  • Should the URL's inside be http or https. They say you should not have both in the same file
  • Nginx I assume redirects HTTP traffic to HTTPS

Can someone kindly suggest?

marked as duplicate by dan Aug 10 at 4:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    You don't tell the pieces that are actually relevant. Do HTTP and HTTPS both work and show the same content? Does one redirect to the other? – Stephen Ostermiller Aug 9 at 18:54
  • Sorry, I enabled nginx such that all http requests are turned into https, there is no http to anything on the website – PirateApp Aug 10 at 4:06