Welcome Guest, Not a member yet? Register   Sign In
redirect() with HTTPS
#1

[eluser]europe72[/eluser]
Any way to specify an HTTPS redirect using the redirect method from the url helper?
#2

[eluser]Pygon[/eluser]
you can use:
Code:
header("Location: https://www.mysite.com/destination/")
#3

[eluser]europe72[/eluser]
No support in the url helper though correct?
#4

[eluser]Pygon[/eluser]
the URL helper bases its redirects off the site_url definied in your config.
#5

[eluser]esra[/eluser]
Do a search for https. There are several solutions based on changes to the stock .htaccess file.
#6

[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.
#7

[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.




Theme © iAndrew 2016 - Forum software by © MyBB