Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: redirection of websites

$
0
0
Instead of using cname records use A records and add the following code within your Nginx configuration file:

return 301 https://yourwebsite.com$request_uri;
or
return 301 http://yourwebsite.com$request_uri;

Does this make sense?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>