SEO gone mad...
patrick at nginx.com
Tue Oct 13 14:16:10 UTC 2015
On Tue, Oct 13, 2015 at 6:09 AM, Andrew Hutchings <ahutchings at nginx.com>
> On Tuesday 13 October 2015 08:59:02 steve wrote:
> > Hi folks,
> > I have a requirement from a customer that the terminal slash be
> > rewritten when accessing the homepage - eg example.com/ is a 301 to
> > example.com
> > I've tried a simple rewrite of ^/$ but that just loops.
> > Any ideas?
> As you have seen in other answers this will be pretty much impossible to
> instead? Something like this:
> At least then (in theory) you can have the illusion of hiding the trailing
> slash without risking breaking browser support for the site.
You can set a canonical URL if your intention is for SEO. This is the
> Kind Regards
> Andrew Hutchings (LinuxJedi)
> Senior Developer Advocate, NGINX Inc.
> nginx mailing list
> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx