Page 1 of 1
301 Redirect / Mod Rewrite /trainling slashes Question
Posted: Mon Jul 16, 2007 11:12 am
by matterhornpat
Hello...new to CMS, been experimenting with it for about a week and love the capabilities.
I develop from an SEO perspective and have a question on rewrites.
I have pretty urls' taken care of, and have redirected domain.com to www.domain.com...have one more thing that I would like to accomplish but am thus far unable to.
Right now crawlers see two versions of home page
www.domain.com and
www.domain.com/
Is there some kind of conditional or exception to the trailing slashes mod that can be placed on the home page to eliminate this?
Trivial to some I am sure...but really need to accomplish this.
Thanks for any help and input...
Re: 301 Redirect / Mod Rewrite /trainling slashes Question
Posted: Mon Jul 16, 2007 2:40 pm
by tsw
what http server are you running?
at least my apache2 does that automatically...
Re: 301 Redirect / Mod Rewrite /trainling slashes Question
Posted: Mon Jul 16, 2007 3:02 pm
by matterhornpat
Apache 1.3.37 (Unix)
Re: 301 Redirect / Mod Rewrite /trainling slashes Question
Posted: Mon Jul 16, 2007 3:43 pm
by Pierre M.
Hello
I can't beleve this ! I have never seen a .com postfixed root URL in any browser. World record !-)
Pierre M.
Re: 301 Redirect / Mod Rewrite /trainling slashes Question
Posted: Mon Jul 16, 2007 3:49 pm
by matterhornpat
I take it I am being made fun of....
Was just asking for some help or an explanation.
Re: 301 Redirect / Mod Rewrite /trainling slashes Question
Posted: Mon Jul 16, 2007 4:10 pm
by Pierre M.
I'm sorry. Please don't take it like this. I apologize if I have hurt you.
Here is a more friendly response :
Do you really see a .com postfixed root URL in the address bar of some browser ? I mean : root URL with no trailing slash ?
What makes you think "crawlers see two versions of home page" ? I would understand if you have said "/" and "/index.html" which isn't a problem for good crawlers.
Pierre M.
Re: 301 Redirect / Mod Rewrite /trainling slashes Question
Posted: Mon Jul 16, 2007 4:17 pm
by matterhornpat
I used a tool, called "crawl test", which is located at seomoz.org
When I run a test for
www.mydomain.com it returns both
www.mydomain.com and
www.mydomain.com/
Re: 301 Redirect / Mod Rewrite /trainling slashes Question
Posted: Mon Jul 16, 2007 4:36 pm
by tsw
Re: 301 Redirect / Mod Rewrite /trainling slashes Question
Posted: Mon Jul 16, 2007 9:14 pm
by Pierre M.
I still fail to understand how a browser could request some URL "rooter" than "/". If it asks "GET /" then it should show ".com/" in the address bar, shouldn't it ?
I'm not confident about seomoz tools.
See this :
http://validator.w3.org/check?uri=http% ... hadoks.com
There is no trailing slash and the w3 validator responds by stating it has tested
http://www.lesshadoks.com/ (with trailing slash).
".com" means an empty URL, hence
not on the web. This is why I was so surprised in my first post above.
Pierre M.
Re: 301 Redirect / Mod Rewrite /trainling slashes Question
Posted: Mon Jul 16, 2007 9:25 pm
by tsw
I have never seen such behavior either..
and the tool requires login to yetanothersiteiwouldneedtocreatenewpasswordfor
Re: 301 Redirect / Mod Rewrite /trainling slashes Question
Posted: Tue Jul 17, 2007 1:11 am
by matterhornpat
Thanks for the explanation and insight...
Much appreciated.