You can change it using following code, add it in your theme function.php or in plugin.
remove_action ( 'wp_head' , 'rel_canonical' ) ;
add_action ( 'wp_head' , 'my_rel_canonical' ) ;
function my_rel_canonical () {
ob_start () ;
rel_canonical () ;
$rel_content = ob_get_contents () ;
ob_end_clean () ;
echo str_replace ( "https:" , "http:" , $rel_content ) ;
}
Related Posts:
- How to redirect all HTTP requests to HTTPS
- @ converted to %40 in HTTPPost request
- Custom Tumblr theme wont save because of non-https urls?
- Getting “Handshake failed…unexpected packet format” when using WebClient.UploadFile() with “https” when the server has a valid SSL certificate
- ndroid 8: Cleartext HTTP traffic not permitted
- Why am I suddenly getting a “Blocked loading mixed active content” issue in Firefox?
- Https to http redirect using htaccess
- Why is WordPress redirecting from http to https on a local environment?
- Switch from https back to http
- Chrome Version 44.0.2403.89 m is trying to force HTTPS
- Serving HTTP and HTTPS from one installation
- Upgrade to SSL Breaks Admin Dashboard
- Redirect www to non-www htaccess
- Remove HTTP: from the site URL and just keep // in it
- How are both HTTP and HTTPS versions displaying?
- WordPress – https : Css and Js files are not working (load on http instead of https)
- Redirect from https to http or from http to https? [closed]
- Cant Access Website – Changed HTTP to HTTPs
- Prevent wp_insert_user from creating duplicate users
- Access general settings trough wordpress files
- Broken urls with http site and https wp-admin
- Divert http to https with WordPress on IIS
- Can’t login to Dashboard when changing site URL to HTTPS
- Redirect http to https does not work on subdir where another instance of WordPress installed
- 403 error on admin login page
- Is it necessary to check for `content-type` in headers?
- No ‘Access-Control-Allow-Origin’ header is present [closed]
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- Changing HTTP to HTTPS
- How to use https on one page only?
- Allow non-SSL pages to use https or Force non-SSL pages to http?
- WordPress changing script source from https to http
- All content is HTTPS, but browsers warn of HTTP mixed content [closed]
- Any any insecure http:// URLs left in wordpress?
- How to make my site use HTTPS for images or how to insert images as relative paths?
- How to convert srcset links from https to http?
- My site doesn’t redirect from HTTP to HTTPS
- Choosing http or https during manual installation of WordPress and database
- https to https problem – 404 and can’t login
- Need workaround for insecure XMLHttpRequest endpoint request
- Broken css on mobile phones only on https
- Someone is copying my site in real time
- Redirecting specific sites to HTTP in WordPress Multisite
- Website Migration (with https) to a new domain(http)
- Plesk login inaccessible after changing site URL
- Understanding Redirects
- Why does WordPress uses HTTPS for JS, CSS on EC2
- Specific Page/Post Need to Stay Non SSL
- Staging Session Randomly Switched from Secure (https) to Not Secure
- mixed contents admin panel is Unsecured
- Why does WP allow duplicate pages with the same name?
- Moving wordpress site from HTTP to HTTPS ERR_TOO_MANY_REDIRECTS
- I don’t want my website to accessed via my public IP address
- Implications of not completing all tasks when switching to HTTPS
- Redirect HTTP request to HTTPS request
- get_pages causing duplicates
- Using the JSON API via HTTPS and HTTP
- Why is http header providing 404 while site is online?
- Navigation Bar displays vertically on Mozilla
- Moving site from HTTP to HTTPS
- How to switch static files back to using HTTP instead of HTTPS?
- CSS/JS is not working in multi lang installation
- WordPress HTTPS – ‘… better to use HTTP for installation …’
- Any idea on how to fix this error when forcing SSL on a certain page?
- how to server over http and https with one installation
- Nice font not working when http to https – SSL Issue
- Duplicator live to wamp https to http
- The plain HTTP request was sent to HTTPS port in wordpress [closed]
- Whole website redirected to httpa but in dashboard settings still http
- Is it bad to redirect http to https?
- Best way to redirect all HTTP to HTTPS in IIS
- Changing my URL in General Settings cause the site to crash
- Development to production, how to move a development site from http + dev.example.com to a production site https + example.com?
- How to force HTTP and stop SSL completey on WordPress website
- How do I make the block editor use https by default?
- Simple Java HTTPS server
- Shuffle a deck of cards in Java
- Can PHP cURL retrieve response headers AND body in a single request?
- “Cross origin requests are only supported for HTTP.” error when loading a local file
- curl: (60) Peer’s Certificate issuer is not recognized.
- Does WordPress send data about your blog to WordPress.org or Automattic?
- How do I disable responsive images in WP 4.4?
- How do I use the ‘http_request_host_is_external’ filter
- WordPress in HTTPS, causing Redirect Loops
- Loading style.css and Jquery using HTTPS
- What is the proper use of https in a modern E-Commerce environment?
- Serve HTTPS requests from subdomain
- Locked out of WordPress Site Admin after enabling Force SSL on WordPress Https (SSL)
- https multiple redirects
- How to properly force https and www on multisite with Apache HTAccess
- Why are theme templates organized as multiple point of entry PHP files instead of reusing your theme’s index.php?
- Moving from http to https, and www. to non-www URL
- Is it possible to access the wp-admin from one instance while keeping WP_HOME pointing to the balancing url?
- wrong media url in wordpress
- How can I set cookies on both secure and non-secure origins at the same time?
- fix 302 redirection error on https
- Https and Http for iFrame
- Display values of current POST request on page
- Update siteurl and home in multisite subsites to https
- prevent duplicate comments using wp_insert_comment