Using a canonical link with non-duplicate pages


HOME ยป Webmasters
I want to use canonical tag for index.php and all versions of
index.php below: index.php index.php?something
index.php?somethingsomething I also have URLs like:someproduct.html
However, I am using packaged software and cannot add a canonical link
to just index.php and its variations, the software will also add it to
someproduct.html. Do you know how Google will respond to
someproduct.html page if I do this?

I think wordpress auto generate canonical tags for the
single post pages (I am using wp 3.3.2 ). But it is not in category or
archive pages. How should I add canonical tags to those pages?

/>

I have tried following code in header.php
file


$path = $_SERVER['REQUEST_URI'];
$uri =
"http://www.mydomain.com" . $path;
print('<link
rel="canonical" href="' . $uri . '"/>');

But
this give just the request URL not the master/parent URL of the
page.
I just want to get canonical tags from the
wordpress same as single post page did. Not like this kind of custom
code. An

Development Tools & Services

Frustrating because it seems like it should be simple.

/>

Client had a data snaffu and a lot of merged pages in
Wordpress.


domain.com/king-2
domain.com/king

/>

are the same page.


Client wants to redirect all the
-2 pages to the non -2 pages


So:

/>

domain.com/king-2 -> domain.com/king


How could i use
.htaccess to set up a rule to do this for all -2 pages?

/>

Thanks...

Web Design

I am using a canonical url link


<link
rel="canonical" href="http://test123.com" />
/>

to avoid duplicate content issues between http and https versions
of a site.
At the moment I have it set up that both the http and
https versions have the canonical link in the head section.

/>

Is this correct or should I only have the canonical link in the
head section on the https version and nothing on the http version? Or
does it matter either way?


(I want bots to index my http
version and not my https version).

Network & Servers
Canonical phpinfo() Link Thread!
 
I find
that lots of hosts don't put the link to a phpinfo() script on their
websites, even though that would save everyone a lot of unnecessary
questions.
So I figure we should have a thread where people can
add links to phpinfo scripts on their own hosts, or hosts where they
happen to have the URL of a phpinfo script.
For those of you who
own your own web hosting services, here's a chance to show off all
your installed goodness, and all it takes is placing a simple link
here (and put one in your FAQ section on your web site too, for the
love of
PHP
Im working on a site that has had an seo expert review it.They have
advised me that we should apply canonical tags on every other page
http://www.domainname.com/detail/table&r=dining-room <link
rel="canonical" href="http://www.domainname.com/detail/table"/> is
it really required that the canonical tag only appear on every other
page, or will it play nicely if it appears on the same page ?The
reason I ask this is... isnt the link also telling Google that it is
infact on the r
Programming Languages
I want to use canonical tag for index.php and all versions of
index.php below: index.php index.php?something
index.php?somethingsomething I also have URLs like:someproduct.html
However, I am using packaged software and cannot add a canonical link
to just index.php and its variations, the software will also add it to
someproduct.html. Do you know how Google will respond to
someproduct.html page if I do this?
Webmasters

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow