Url trailing slash and seo

What is better for SEO and page rank?

mysite.com/directory/my-page

OR

mysite.com/directory/my-page/

I know that these two URLs are treated as two separate pages by search engines, but I am stuck in deciding which format to use sequentially and which is better.

Thanks,

Ham

+6
seo rank slash trailing
source share
4 answers

Matt Cutts (Google Gogles Webspam Team Leader) prefers the end slash.

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

In any case, the most important thing is to choose one and stick to it evenly . Make a 301 redirect for the user, if necessary.

+9
source share

Google doesn't care about completing the 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 is a file or directory, or it contains a trailing slash or it does not contain a trailing slash.

Matt simply states that his personal preference is cited in a different answer, rather than Google's official preference, and this is not so.

+5
source share

.htaccess trailing forward slashes

RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [L,R=301] 
+3
source share

both should be equal in terms of SEO (as long as you maintain consistency), but tend to have different values ​​for the user:

mysite.com/directory/my-page will be the URL of the page while: mysite.com/directory/my-page/ will be the directory index URL.

these are just habits as you can rewrite any url you want as you want ...

0
source share

All Articles