Questions tagged [rel-canonical]
The link element rel=canonical in the head of a page with a certain URL points search engines to the original URL of that page.
35
questions
0
votes
0answers
17 views
Pagination url canonical problem for other pages
I have a WordPress Page setup, named 'Blog', where I've added the WP Query to bring through my blog posts.
I also have pagination, setup on these pages such as:
example.com/blog,
example.com/blog/page/...
1
vote
0answers
55 views
How to fix Ahref error showing wordpress admin pages as “Duplicate pages without canonical”?
I am using Ahref tool for performing a site audit on a WordPress based site. The site audit shows an error "Duplicate pages without canonicals" with a page count of 110. When I check the ...
0
votes
1answer
70 views
Change cannonical URL after changing url with add_rewrite_rule()
So, I'm making a plugin for some niche application for my customer which involves a table with data, and I created a page within the plugin to show more in-depth information about the table row.
This ...
0
votes
0answers
79 views
How can I change the canonical URL of an Ajax-created taxonomy URL in wordpress?
I use wordpress with woocommerce and have URLs like this (hiding the domain name since the site is not ready yet):
/filter/product_tag=computer-accessories/
however, it has a canonical tag of my ...
0
votes
1answer
254 views
Blog home page has canonical link that is incorrect. Do not see where to change this
As part of our website we have a wordpress blog in a subdirectory. I scanned our main site for broken links. The scan included the wordpress blog in the subdirectory. Some "broken links" ...
0
votes
0answers
121 views
Canonical url in wordpress post pagination
I have pagination using in my wordpress posts & pages. I need to set the main page url as canonical in my paginated pages. For example
In the page https://sapbrainsonline.com/mm-tutorial/4 I need ...
0
votes
0answers
153 views
Disable/ Remove canonical tag generated by wordpress
There is problem in my wordpress site. It is showing duplicate canonical URL issue because yoast and WordPress or some other plugin both are creating canonical tag. I have tried to remove the ...
1
vote
1answer
607 views
Wrong Canonical url link
I have a weird problem.
I have a page that changed URL (because it's parent changed name).
Example
Link
https:www.mysite.com/my-services/service-1
is now:
https:www.mysite.com/services/service-1
...
0
votes
0answers
168 views
Remove WP Core canonical for category pagination
It seems that WP is adding a canonical to the root of my pagination, and no indexing all other pages on Category pages.
For example, /locations/residential/?_page=2 is no-index, and gives /locations/...
1
vote
0answers
31 views
How to use relative urls without canonical and prev-next?
I want to use relative urls instead of absolute urls but not all types. Here's just a few examples.
Exclude:
canonical urls, prev and next post like this:
<link rel="canonical" href="https://www....
0
votes
1answer
28 views
Wordpress replaces “https://” with “//” for Site & Wordpress-URL
When I save "https://example.com" in General Settings as my Site & Wordpress URL, it gets replaced by "//example.com".
To analyze the problem, I checked the Wordpress database, but 'WP_HOME' and ...
1
vote
0answers
60 views
?cat=-1 Indexed Versions Of Homepage
I'm finding some strange query strings on my homepage are indexed in Google and causing duplicate content. A couple of examples: https://sciencetrends.com/page/103/?cat=-1
https://sciencetrends.com/?...
0
votes
0answers
159 views
adding wordpress yoast SEO canonical url from “transition_post_status” hook
I am using transition_post_status hook to add get some data at the time of post is publish but i can access any variables but when i am trying to set canonical url from add_filter it is return 500 ...
0
votes
1answer
1k views
Setting custom canonical urls
I have a page that requests and displays information from a database. All is fine but I'm having some trouble setting custom canonical URLs for this single page only and its URLs (with parameters ...
0
votes
0answers
53 views
tried putting this <link rel=“canonical” href=“https://www.example.com<?php echo $_SERVER['REQUEST_URI'];?>”> as canonical tag
This message pop up at dashboard "Your website URL has recently been changed. Automatic payments and customer emails have been disabled to prevent live transactions originating from development or ...
3
votes
3answers
643 views
What's the purpose of admin canonical tag?
I have searched through Google and WordPress developer resources, but nothing came up.
I understand the purpose of rel="canonical" tag in a website's frontend (it's part of the website SEO), but I ...
0
votes
1answer
1k views
Customize rel=canonical tag for single blog post
I wrote a guest blog post for another website. I'd like to publish this same blog post on my website but include a canonical URL that points to the original publisher.
This allows me to post the ...
0
votes
1answer
981 views
Why are <link rel> tags from the header showing up on my Wordpress site? [closed]
I am testing my new WP site. I wanted to see how it worked using a text-only browser, so I fired up "links" from my shell to visit the site. At the top of the page before my navigation menu, the ...
1
vote
0answers
178 views
After changing siteurl ,home url form database it shows 3/4 errors called
Notice: Undefined index: host in
/home/bhavani/public_html/wp-includes/canonical.php on line 444
1
vote
2answers
479 views
WP didn't redirect to canonical category URL
I have a problem with canonical redirect.
mydomain.com/mycat is the correct category URL but the following URL works too:
- mydomain.com/asdfa/mycat
- mydomain.com/1234/mycat
- mydomain.com/...
1
vote
1answer
3k views
Pagination url canonical problem
I have pagination link look like http://example.com/page/2 . The rel="canonical" is displayed like http://example.com/2.
How this can be fixed
1
vote
1answer
397 views
add the post as canonical for attachment page wordpress
the attachment page should have canonical added to the main post
on attachment page (image.php) I currently have (automatically added by All in One Seo Pack):
<link rel="canonical" href="https://...
4
votes
1answer
5k views
stop redirection on /wp-admin call to /wp-login
I am building a website, with wordpress+buddypress (latest version).
In this website, I have my own custom login|signup|resetpass forms, and i do not want to link them to back-end wp-forms.
And I ...
6
votes
3answers
10k views
Notice: Undefined index: host in /var/www/html/wp-includes/canonical.php on line 445
After changing siteurl ,home url form database it shows 3/4 errors called
Notice: Undefined index: host in
/var/www/html/wp-includes/canonical.php on line 445
Notice: Undefined index: scheme ...
0
votes
0answers
518 views
Google Indexed sub pages in wordpress pagination in post
I'm using WordPress Pagination in Post. So that users can view the same post in different parts.
Issue - Google is indexing all the subpages. How to resolve it? :/
http://example.com/post/ (...
4
votes
1answer
3k views
Wrong canonical link on wp-admin pages
I have a subdomain:
https://blog.example.com/
I forcibly redirects to directory:
https://www.example.com/blog
By changing site URL and some RewriteRule on .htaccess.
My .htaccess:
<...
2
votes
3answers
3k views
remove rel=next on home page but not others
There is a major problem with most new templates for WordPress that want you to set your homepage to Your Latest Posts.
This is to enable many of the great theme features to work.
The problem with ...
2
votes
1answer
2k views
How to bulk edit canonical url's in SQL?
I've been assigned to edit the canonical URL's (rel="canonical" found in the head)of about 600 posts on a client's site. Not all of the posts will use the same canonical url. Nor are these 301's or ...
1
vote
0answers
160 views
Wordpress within a subdirectory of another Wordpress environment doesn't work
Here's a summary of my scenario:
I'm running Wordpress on a linux environment
The root directory contains and index.php file that references the subdirectory where my main site's files are (codex ...
1
vote
1answer
417 views
Wordpress Redirecting Non Category Pages /page/nnn to their Canonical URLs
I seemingly to have a strange issue I have found in almost every other Wordpress site.
Suppose, you have set your Blog home to a static WP page /myhome. And you have a separate page for blog /blog.
...
0
votes
1answer
274 views
Two urls for one website
I have a customer that started his small business using an url called "firstname-lastname.ch". Since he was lucky enough to grow and now wants a proper URL, he would like to have another URL for his ...
0
votes
0answers
139 views
Changing permalinks and canonical [duplicate]
I have a domain with permalinks set to
/%postname%/
but now I would like to change to
/%category%/%postname%/
I thought who ever now come from a book mark to http://domain.com/my-first-post ...
0
votes
2answers
61 views
Configuring Home Page Address
I though this was a simple issue. When i type in the browser:
www.example.com
it changes to:
www.example.com/home/
This delivers the proper contents from the Home page, but i wish to stay showing ...
2
votes
2answers
299 views
Why isn't the canonical link element used for all pages?
The canonical link element isn't set for all pages. For example, if I look at the source code for a post, I can see the following in the <head>:
<link rel='canonical' href='http://example....
19
votes
3answers
53k views
How to prevent automatic redirection of 404 errors and “incorrect” URLs?
Wordpress has a feature whereby it will automatically redirect your URLs if it percieves them to be written wrongly. Here is an example: I have a page called my-page
If I go to:
www.mysite.com/...