Welcome! Log In Create A New Profile

Advanced

Re: SEO gone mad...

Aleksandar Lazic
October 13, 2015 04:48PM
Hi.

Am 13-10-2015 21:39, schrieb steve:
> Thanks for all the replies - I've not been ignoring you, I'm just in a
> different timezone!
>
> On 10/14/2015 03:16 AM, Patrick Nommensen wrote:
>
>> On Tue, Oct 13, 2015 at 6:09 AM, Andrew Hutchings
>> <ahutchings@nginx.com> wrote:
>>
>>> Hi!
>>>
>>> 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/ [1] is a
>>> 301 to
>>>> example.com [2]
>>>>
>>>> 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 get
>>> right. Have you considered writing some Javascript to do it client
>>> side
>>> instead? Something like this:
>>>
>>>
>>
> http://stackoverflow.com/questions/10953792/change-url-in-browser-address-bar-without-reload-existing-page
>>>
>>> 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
>> standard practice.
>>
>> https://moz.com/learn/seo/canonicalization
>>
>>> Kind Regards
>>> --
>>> Andrew Hutchings (LinuxJedi)
>>> Senior Developer Advocate, NGINX Inc.
>
> As can be seen from the google article, it's apparently a bad thing(tm)
> to duplicate content for example.com/ and example.com. Apparently some
> .htaccess tweak can do a 301 redirect from one to the other, but
> absolutely nothing that has been suggested ( or others that allegedly
> work - like redirecting ^/(.*)/ ) does actually work with nginx, which
> is exactly what I expected to happen.
>
> The CMS ( it's Magento but that doesn't really make a difference )
> rewrites the URL to the value stored in the database anyway, but the
> 'problem' is that it doesn't redirect.
>
> As has been suggested, this is a complete non-event, as every page
> contains a canonical header entry anyway! Have suggested that client
> engages other SEO 'consultants'.

Good suggestion ;-)

> Now need to wash the snake oil out of my head (:
>
> Thanks for your help.
>
> Steve
>
> --
> Steve Holdoway BSc(Hons) MIITP
> http://www.greengecko.co.nz
> Linkedin: http://www.linkedin.com/in/steveholdoway
> Skype: sholdowa
>
>
> Links:
> ------
> [1] http://example.com/
> [2] http://example.com
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

SEO gone mad...

GreenGecko October 12, 2015 04:00PM

Re: SEO gone mad...

Aleksandar Lazic October 12, 2015 05:20PM

Re: SEO gone mad...

Fireye00 October 12, 2015 05:28PM

Re: SEO gone mad...

itpp2012 October 12, 2015 05:54PM

Re: SEO gone mad...

GreenGecko October 12, 2015 06:16PM

Re: SEO gone mad...

Aleksandar Lazic October 13, 2015 05:02AM

Re: SEO gone mad...

Francis Daly October 13, 2015 08:26AM

RE: SEO gone mad...

Lukas Tribus October 13, 2015 06:22AM

Re: RE: SEO gone mad...

itpp2012 October 13, 2015 07:19AM

RE: SEO gone mad...

Lukas Tribus October 13, 2015 08:12AM

Re: RE: SEO gone mad...

itpp2012 October 13, 2015 08:58AM

Re: SEO gone mad...

Gena Makhomed October 13, 2015 10:14AM

Re: SEO gone mad...

Andrew Hutchings October 13, 2015 09:10AM

Re: SEO gone mad...

Patrick Nommensen October 13, 2015 10:18AM

Re: SEO gone mad...

GreenGecko October 13, 2015 03:40PM

Re: SEO gone mad...

nanaya October 13, 2015 03:48PM

Re: SEO gone mad...

GreenGecko October 13, 2015 04:00PM

Re: SEO gone mad...

nanaya October 13, 2015 04:04PM

Re: SEO gone mad...

GreenGecko October 13, 2015 04:14PM

Re: SEO gone mad...

nanaya October 13, 2015 04:16PM

Re: SEO gone mad...

nanaya October 13, 2015 04:22PM

Re: SEO gone mad...

Aleksandar Lazic October 13, 2015 05:48PM

Re: SEO gone mad...

Aleksandar Lazic October 13, 2015 04:48PM

Re: SEO gone mad...

nanaya October 13, 2015 09:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready