View Larger Image Get Full URL in PHP and create dynamic canonical tag We need to add the following PHP code to related *.php file : Copy to ClipboardSyntax Highlighter $actual_link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $actual_link = rtrim($actual_link , '/') ?> By Mir Saeid|2020-12-10T13:40:30-05:00October 1st, 2019|Blog|0 Comments Share This Story, Choose Your Platform! Facebook About the Author: Mir Saeid Experienced computer engineer with post graduate diploma in e-Business, Web Developer and Programmer Related Posts Redirect to a Custom Thank You Page After Checkout in WooCommerce Without Any Plugins Gallery Redirect to a Custom Thank You Page After Checkout in WooCommerce Without Any Plugins Add second description to category and shows up under products in WordPress Gallery Add second description to category and shows up under products in WordPress ajax-loader.gif problem Gallery ajax-loader.gif problem How to capture client’s IP in PHP Gallery How to capture client’s IP in PHP How to Configure SMTP for office 365 in Easy WP SMTP Plugin – WordPress Gallery How to Configure SMTP for office 365 in Easy WP SMTP Plugin – WordPress