How to echo link to http rather than https
2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 13, 2009 (RSS)
By (Deleted User) - November 13, 2009
Hello,
I have a secure page on a clients site. Within the footer I have a list of the next tours available using:
As the secure page has https at the start of the url I don't want the links from the above code to also include https.
How can I force the above to use http instead?
Thanks Jono
I have a secure page on a clients site. Within the footer I have a list of the next tours available using:
<ul>
<?php foreach ($guided_tourfooterRecords as $record): ?>
<li><a href="<?php echo $record['_link'] ?>" rel="bookmark" title="<?php echo $record['tour_title_short'] ?>"><?php echo $record['tour_title_short'] ?></a></li>
<?php endforeach; ?>
</ul>
As the secure page has https at the start of the url I don't want the links from the above code to also include https.
How can I force the above to use http instead?
Thanks Jono
Re: [jonoc73] How to echo link to http rather than https
By Damon - November 13, 2009
Hi Jono,
Try this:
Try this:
<ul>
<?php foreach ($guided_tourfooterRecords as $record): ?>
<li><a href="http://www.yoursite.com<?php echo $record['_link'] ?>" rel="bookmark" title="<?php echo $record['tour_title_short'] ?>"><?php echo $record['tour_title_short'] ?></a></li>
<?php endforeach; ?>
</ul>
Cheers,
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/