![]() |
redirect() with HTTPS - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: redirect() with HTTPS (/showthread.php?tid=4240) |
redirect() with HTTPS - El Forum - 11-14-2007 [eluser]europe72[/eluser] Any way to specify an HTTPS redirect using the redirect method from the url helper? redirect() with HTTPS - El Forum - 11-14-2007 [eluser]Pygon[/eluser] you can use: Code: header("Location: https://www.mysite.com/destination/") redirect() with HTTPS - El Forum - 11-14-2007 [eluser]europe72[/eluser] No support in the url helper though correct? redirect() with HTTPS - El Forum - 11-14-2007 [eluser]Pygon[/eluser] the URL helper bases its redirects off the site_url definied in your config. redirect() with HTTPS - El Forum - 11-14-2007 [eluser]esra[/eluser] Do a search for https. There are several solutions based on changes to the stock .htaccess file. redirect() with HTTPS - El Forum - 01-04-2008 [eluser]Vik[/eluser] Esra, if I use an .htaccess file solution, do I need to also have a complete installation of CI in my https directory? Thanks very much in advance for any info. redirect() with HTTPS - El Forum - 01-04-2008 [eluser]Vik[/eluser] Update - I think I found the answer. I bought an SSL certificate and installed it on my site. My web host uses a symbolic link so the same folder can be used for http and for https. So now, if I use https:// in the URL, the page is secured. |