Is it possible to redirect url http://example.com/ to http://example.com without trailing slash ? My SEO specialist said to hide 'http://example.com/' from google index. And I am confused about it.
Asked
Active
Viewed 211 times
0
-
Read [this post on Server Fault](https://serverfault.com/questions/597302/removing-the-trailing-slash-from-a-url-with-nginx). – KazikM Dec 08 '20 at 12:56
-
However, In the Google Search Console, Google itself adds trailing slashes to all registered domains. – KazikM Dec 08 '20 at 12:57
-
They are the same. Some browsers hide a solitary `/` following the domain name in the address bar, but the URI received by the server will always contain at least one character, which begins with `/`. – Richard Smith Dec 08 '20 at 13:19
-
Does this answer your question? [Nginx redirect without trailing slash](https://stackoverflow.com/questions/64579921/nginx-redirect-without-trailing-slash) – pawel Nov 13 '21 at 10:49