Jump to content

display current url without querystring


trooperbill

Recommended Posts

i want to use the new canonical rel tag to solve a sites duplicate content issues however im not that familiar with PHP.

 

what i need to do is display the current pages url without the querystring

 

anyone know how to do this? it needs to populate the following tag

 

<link rel="canonical" href="http://www.website.com/page.php">

 

where the url is page.php?id=kjhjkhasdfkjhsfdkjshdf etc

 

thanks

mark

Link to comment
https://forums.phpfreaks.com/topic/146516-display-current-url-without-querystring/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.