A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Write for DigitalOcean
You get paid, we donate to tech non-profits.
Find and meet other developers in your city.
Contribute to Open Source
I want to redirect from http://domain.com to http://domain.com/
Common answers like:
rewrite ^([^.]*[^/])$ $1/ permanent
don't solve the problem.
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.
Can you explain why or what you want to achieve as there is no value and/or reason you would need to do this.
This one came from the SEO department. And if you'll make curl -I to Amazon, Google, Facebook sites without trailing slash, you'll see that they all are redirected to a trailing slash.