0

Hi I need to create a button to link to a different TLD with the same URI

For example

http://website.com/page1

Will have a button that links to

http://website.co.uk/page1

I am thinking something like

<a href="<?php echo('http://website.co.uk'.$_SERVER["REQUEST_URI"]); ?>">LINK HERE</a>

however this clearly isn't working ?

Any thoughts?

Thanks

When I test this I end up with the following

enter image description here

linking to

https://website.com/page1/%3C?php%20echo(%27http://website.co.uk%27.$_SERVER[
Henry Aspden
  • 1,863
  • 3
  • 23
  • 45

0 Answers0