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.

1
vote
0answers
17 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
21 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
78 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
15 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 ...
0
votes
0answers
13 views

How to get the canonical URL that should be same as main URL which we can see in toolbar in WordPress?

I'm using WordPress platform for my website and I'm using Custom Permalink plugin for URL customization. Now, how can I get that customized URL as a Canonical URL without trailing slash issue? Sample ...
0
votes
0answers
127 views

Deleting the Default Canonical Tag and Inserting a Custom Tag for a Single Category

I need to be able to delete the default canonical tag for all posts in the category 'rezept' and then create a new custom canonical tag because I have modified the URL string for this category to ...
0
votes
0answers
25 views

How to set canonical url for wp_insert_post created post?

I creating posts with wp_insert_post, and I want set for these posts canonical urls... How can I do this? Any idea is it would be fine. In a perfect world I could use an option for this in my array......
3
votes
3answers
278 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
225 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
537 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
131 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
329 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
1k 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
266 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://...
3
votes
1answer
2k 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 ...
5
votes
3answers
7k 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
462 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
2k 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: <...
1
vote
2answers
2k 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
741 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
138 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
266 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
123 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
33 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
57 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 ...
1
vote
2answers
187 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....