can anyone suggest me the alternative of canonical tags? like if i dont want to use canonical so what are the other methods? besides 301 and robot.txt...
i will assume you mean to say u want to get rid of canonical urls like www.yourdomain.com and yourdomain.com ?
Did u try the .htaccess method? here is the code
This will force users to go the www version of your url
# Redirect non-www urls to www
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com
RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]
You can also use
# Redirect www urls to non-www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.yoursite\.com [NC]
RewriteRule (.*) http://yoursite.com/$1 [R=301,L]
This will force users to go to your non www. version of the url.
The first step on the way to fix canonicalization issues is to find them. Here is what I do.
1. Go to www.google.com
2. Click on Advanced Search next to the text box.
3. Enter * in the "all these words" text box.
4. Select the drop down for Results per page and set it to 100 results.( the maximum).
5. In the "Search within a site or domain" enter your site name to be canonicalized.
6. Hit Advanced Search.
7. Once you get the results, browse to the bottom of the page and click on the link which says "repeat the search with the omitted results included."
Answers
1. Go to www.google.com
2. Click on Advanced Search next to the text box.
3. Enter * in the "all these words" text box.
4. Select the drop down for Results per page and set it to 100 results.( the maximum).
5. In the "Search within a site or domain" enter your site name to be canonicalized.
6. Hit Advanced Search.
7. Once you get the results, browse to the bottom of the page and click on the link which says "repeat the search with the omitted results included."
- Spam
- Abuse
- Troll
0 • Off Topic 1Disagree Agree Like •- Spam
- Abuse
- Troll
0 • Off Topic Disagree Agree Like •