[TYPO3-english] realurl + appendMissingSlash + 404 notFound + 301 Moved permanently + SEO
Jigal van Hemert
jigal.van.hemert at typo3.org
Fri Jan 18 20:27:01 CET 2013
On 18-1-2013 19:52, Krystian Szymukowicz wrote:
> HOW REALURL BEHAVES NOW:
> 1. Enter http://www.example.com/some-non-existing-page
> 2. Headers returned are "301 Moved permanently" and then there is
> redirection to http://www.example.com/some-non-existing-page/
> 3. Realurl figure out that this page do not exist and return 404 header.
That's the correct behaviour. The URL without trailing slash would never
have been generated by the site. If the configuration in the past had
been that there was no trailing slash, the 301 is still correct in general.
The fact that the page does not exist (anymore) is a different issue.
Let's see the real life use cases:
1. User enters www.example.com/some-non-existing-page
The browser will receive an 301 and simply updates the address bar with
the url with trailing slash. After that the 404 page will be displayed.
This is completely understandable for every user.
2. The URL www.example.com/some-non-existing-page is stored in an
automated system and requested by that system
The system will receive a 301 to the url with trailing slash and will
update the stored url. After that it will receive the 404 error and will
mark the url as invalid.
This is completely understandable for all systems.
You don't have to do the trailing slash addition with RealURL; there are
also rewriting solutions for your favourite web server. And if you use
that, the same procedure will be followed; the web server will not check
if it is a valid URL first before redirecting.
Just my opinion.
Jigal van Hemert
TYPO3 Core Team member
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-english