Welcome to WebmasterWorld Guest from 54.144.82.216

Forum Moderators: martinibuster

Message Too Old, No Replies

canonical tag issue

     
5:33 am on Jan 18, 2018 (gmt 0)

New User from IN 

joined:Jan 18, 2018
posts:19
votes: 0


I am taking an example.

Website : http://www.example.com/

On above website, canonical tag is <link rel="canonical" href="http://www.example.com"/> (here slash at the end of url is not included)

and i am using URL (http://www.example.com/) with slash for link building.

I am confused about whether to use slash at the end of url in link building or not as i have not included slash in canonical tag (http://www.example.com).

Is there any difference between "http://www.example.com/" and "http://www.example.com"

Your help will be appriciated!

Thanks
5:52 am on Jan 18, 2018 (gmt 0)

Moderator from US 

WebmasterWorld Administrator keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12913
votes: 890


Hello sunnydeval and welcome to WebmasterWorld [webmasterworld.com]

Just leave the slash off. Be consistent.
6:57 am on Jan 18, 2018 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11451
votes: 172


for the home directory, the slash is mostly irrelevant because it is the same url as far as the search engines are concerned.

technically speaking, the trailing slash is the correct url for the home page of your site.
when you request http://www.example.com browsers will essentially add the trailing slash by requesting the path "/" from hostname http://www.example.com

when you are canonicalizing http://www.example.com/more-path-info/ vs http://www.example.com/more-path-info or http://www.example.com/more/path/info/ vs http://www.example.com/more/path/info the trailing slash should be used (or not) consistently depending on if the url is actually referring to a (virtual or physical) directory or not.
out of the box, apache will typically be configured (using mod_dir) to redirect to the trailing slash url if a directory name exists matching a requested no-trailing-slash path.
4:30 am on Jan 22, 2018 (gmt 0)

New User from IN 

joined:Jan 18, 2018
posts:19
votes: 0


Thank you for your reply.
6:58 am on Jan 22, 2018 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11451
votes: 172


welcome to WebmasterWorld [webmasterworld.com], sunnydeval!
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members