Right Usage of Canonical Tag

jatinder

New member
Joined
May 6, 2015
Messages
8
Points
0
I dont know how to use canonical tags. My website has two urls like example.com and example.com/index.php . I prefer to only .com domain, not to index.php. I want to put a question in this case, on which page I have to apply canonical tag? Please answer me very soon.
 

pabitra

New member
Joined
Oct 10, 2014
Messages
29
Points
0
I dont know how to use canonical tags. My website has two urls like example.com and example.com/index.php . I prefer to only .com domain, not to index.php. I want to put a question in this case, on which page I have to apply canonical tag? Please answer me very soon.
Each website needs a main file to run for its home page, for PHP language it called example.com/index.php, ASP language it called as example.com/default.php

when you run example.com mean that you are running this example.com/index.php hence it has no difference between 2 these URLs.

If you want to use canonical tag

Using this code

Code:
<link rel="canonical" href="http://www.example.com"/>
Adding it before </head> on your homepage.
 
Older threads
Replies
8
Views
3,228
Replies
6
Views
2,857
Replies
5
Views
2,485
Replies
9
Views
3,554
Latest threads
Replies
2
Views
226
Replies
2
Views
228
Replies
2
Views
330
Replies
1
Views
346
Recommended threads
Replies
12
Views
8,422
Replies
7
Views
3,481
Replies
3
Views
2,758

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top