![]() |
How to change site_url if site isn't in iframe - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: How to change site_url if site isn't in iframe (/showthread.php?tid=43449) |
How to change site_url if site isn't in iframe - El Forum - 07-11-2011 [eluser]simotho[/eluser] Hi, Is it possible to change the site_url if the page is in an iframe. For example i have my site as a facebook application, if the user is on my site through facebook apps, the site_url should be apps.facebook.com/application, but if the user is on my site directly and not throught facebook, the site_url should be something like this: domain.com/ Really hope someone can help me! :-) How to change site_url if site isn't in iframe - El Forum - 07-12-2011 [eluser]ranjudsokomora[/eluser] Hi simotho, You may want to check the referral url and do what ever from there. Or you may also be able to use the $_SERVER["HTTP_HOST"] variable but that would require that your software runs on two different names. |