|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
replace http with https
Hi. Have a php line that's need to be dynamic.
The question is, how should I make this line so the http:// part also can change? (Change between http and https depending on what the user are using) Code:
http://".$_SERVER["HTTP_HOST"] . "/index.php" Can someone help me with this? I guess it has something to do with SERVER_PROTOCOL variable. |
|
#2
|
|||
|
|||
|
Change http:// to https://
Hello, you want to change http:// to https:// it is not possible to change http:// to https:// for one reason because https:// is to access a SSL (Secure Server) so you would have to buy some sort of software or even buy some sort of online programme you can use to make Secure servers that is the only way I think you will change the http:// to https://
Thank You -- free cPanel Hosting: www.e-main.co.uk |
|
#3
|
||||
|
||||
|
Yeah but if you do have SSL it should be a non-issue. My server is configured
- Root -- cgi -- httpdocs -- httpsdocs Assuming your PHP is running in CGI then it should be able to direct to either http or https.
__________________
medialint.com "Energy has the opportunity to change the climate if it's done right." - Sen. John Ensign, R-Nev. (quoted out of context) |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > replace http with https |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|