Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

url trailing slash and seo

Which is better for SEO and page rank?

mysite.com/directory/my-page

OR

mysite.com/directory/my-page/

I know the above two URLs are treated as two separate pages by search engines, but I'm stuck on deciding which format to consistently use and which is better.

Thanks,

Ham

like image 604
Ham Avatar asked Aug 08 '10 17:08

Ham


People also ask

Do slashes affect SEO?

The addition or removal of a slash at the end of the URL technically does not make a difference on how search engines view a page or how the browser renders the content.

Does Google care about trailing slash?

Google treats each URL above separately (and equally) regardless of whether it's a file or a directory, or it contains a trailing slash or it doesn't contain a trailing slash.

Should URL paths have a trailing slash?

Different URL structures may be treated differently. Whether you choose to use a trailing slash or not is more of a personal preference than anything.


2 Answers

Matt Cutts (head of Google’s Webspam team) prefer trailing slash.

http://www.mattcutts.com/blog/seo-advice-url-canonicalization/

Anyway, the most important thing is pick one and stick with it uniformly. Do a 301 redirect for user if needed.

like image 134
tszming Avatar answered Sep 24 '22 21:09

tszming


Google does not care about trailing slash. Here is their official answer.

http://googlewebmastercentral.blogspot.fr/2010/04/to-slash-or-not-to-slash.html

Google treats each URL above separately (and equally) regardless of whether it’s a file or a directory, or it contains a trailing slash or it doesn’t contain a trailing slash.

Matt is just stating his personal preference quoted in the other answer, not the official preference of Google, which is neither.

like image 20
giorgio79 Avatar answered Sep 25 '22 21:09

giorgio79