301 Redirect / Mod Rewrite /trainling slashes Question

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
matterhornpat
Forum Members
Forum Members
Posts: 49
Joined: Wed Jul 11, 2007 7:55 pm

301 Redirect / Mod Rewrite /trainling slashes Question

Post 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...
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: 301 Redirect / Mod Rewrite /trainling slashes Question

Post by tsw »

what http server are you running?

at least my apache2 does that automatically...
User avatar
matterhornpat
Forum Members
Forum Members
Posts: 49
Joined: Wed Jul 11, 2007 7:55 pm

Re: 301 Redirect / Mod Rewrite /trainling slashes Question

Post by matterhornpat »

Apache 1.3.37 (Unix)
Pierre M.

Re: 301 Redirect / Mod Rewrite /trainling slashes Question

Post by Pierre M. »

Hello
patstrader wrote: Right now crawlers see two versions of home page www.domain.com and www.domain.com/
I can't beleve this ! I have never seen a .com postfixed root URL in any browser. World record !-)

Pierre M.
User avatar
matterhornpat
Forum Members
Forum Members
Posts: 49
Joined: Wed Jul 11, 2007 7:55 pm

Re: 301 Redirect / Mod Rewrite /trainling slashes Question

Post by matterhornpat »

I take it I am being made fun of....

Was just asking for some help or an explanation.
Pierre M.

Re: 301 Redirect / Mod Rewrite /trainling slashes Question

Post 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.
User avatar
matterhornpat
Forum Members
Forum Members
Posts: 49
Joined: Wed Jul 11, 2007 7:55 pm

Re: 301 Redirect / Mod Rewrite /trainling slashes Question

Post 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/
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: 301 Redirect / Mod Rewrite /trainling slashes Question

Post by tsw »

Pierre M.

Re: 301 Redirect / Mod Rewrite /trainling slashes Question

Post 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.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: 301 Redirect / Mod Rewrite /trainling slashes Question

Post by tsw »

I have never seen such behavior either..

and the tool requires login to yetanothersiteiwouldneedtocreatenewpasswordfor
User avatar
matterhornpat
Forum Members
Forum Members
Posts: 49
Joined: Wed Jul 11, 2007 7:55 pm

Re: 301 Redirect / Mod Rewrite /trainling slashes Question

Post by matterhornpat »

Thanks for the explanation and insight...

Much appreciated.
Post Reply

Return to “CMSMS Core”