Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

changing http link text

changing http link text

hi, i am able to catch the relevant pages wich should be displayd as https. For some reason, i want to change that in chameleon

i have to rule to identify http://www.apples.com/

is there a way to change the link to https://www.apples.com/?

regards

H

henrici
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: changing http link text

Hi H,

yes, you can do a redirect to the https version of the same page like this:

$uri = clone Juri::getInstance();
$uri->setScheme("https");
$app = JFactory::getApplication();
$app->redirect($uri->toString());

You can put that into the PHP section in the Succeed action, so it only operates if the rule succeeds.

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1680
Total Polls:
6
Total Posts:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10831
Newest User:
bluesky1
Members Online:
0
Guests Online:
120

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked