Welcome! Log In Create A New Profile

Advanced

RE: SEO gone mad...

Lukas Tribus
October 13, 2015 06:22AM
> I'm apparently trying to do something that apache can, but so far,
> nothing has worked - everything just ends in a loop.

No, you cannot do this, see [1]:

> If the target URI's path component is empty, the client MUST
> send "/" as the path within the origin-form of request-target.

An empty request will always lead to a "GET / HTTP/1.1" request,
"GET HTTP/1.1" is invalid.

There is not distinction at HTTP layer between:
example.com
and
example.com/

Therefor, it will always loop. Apache can't do this either,
this is simply how HTTP works.

You can only do this with subdirectories, in both nginx
and apache (and every other webserver for that matter),
because both of the following requests are valid:
"GET example.com/subdir/ HTTP/1.1"
or
"GET example.com/subdir HTTP/1.1"

But *not* with "/".



Regards,

Lukas

[1] https://tools.ietf.org/html/rfc7230#section-5.3.1
_______________________________________________
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: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready