But when you type in “.html” next to what the code above removed, the “.html” stays. I read somewhere that google interprets the two addresses (one without and one with “.html”) as two separate pages.
Elswhere I had a slash problem to solve and used
RedirectPermanent /xyz/ http://abc.com/xyz
and it works fine
but RedirectPermanent /xyz.html http://abc.com/xyz
does not work, causes a 404 error.
So how do you deal with typed in file types that you don’t want to show after the typer hits enter/go/whatever ?
Now that I think about it, an SEO site said google may think of slash ending and no slash ending might be thought of as different web pages, /xyz a different page than /xyz/ .
I do use canons, but canons don’t stop google from seeing 2 different pages of the same thing, do they? Even so, I’d still like to have more than one way to circumvent write in addresses. Can you unwrite a typed in file type (.html) ?