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?
- Style.css and .js files doesn’t load at first – load only after forced reload
- WP_PLUGIN_URL equivalent
- What is the difference between POST and PUT in HTTP?
- What is the difference between POST and PUT in HTTP?
- Should a 502 HTTP status code be used if a proxy receives no response at all?
- SOAP vs REST (differences)
- What is the difference between a URI, a URL and a URN?
- HTTP Status 504
- SSL Error: unable to get local issuer certificate
- What is the difference between POST and GET? [duplicate]
- Removing duplicates in lists
- Chrome hangs after certain amount of data transfered – waiting for available socket
- Use of PUT vs PATCH methods in REST API real life scenarios
- Do I need Content-Type: application/octet-stream for file download?
- Problem HTTP error 403 in Python 3 Web Scraping
- application/x-www-form-urlencoded or multipart/form-data?
- How can I make git accept a self signed certificate?
- Problem HTTP error 403 in Python 3 Web Scraping
- Why Puma listen on ‘tcp://localhost:3000’ instead of ‘http://localhost:3000’
- application/x-www-form-urlencoded or multipart/form-data?
- Is 418 “I’m a teapot” really an HTTP response code?
- How to download a file over HTTP?
- How to define the basic HTTP authentication using cURL correctly?
- https connection using CURL from command line
- HTTPS connections over proxy servers