atomic chavez
Hi there
Hello fellow OTlanders
I was wondering if someone could enlighten me, I am trying to run me little war project at home.
I had several experiences renting dedicated servers so I know that when you want to get your website online I did the following:
Does someone know how to do this same process but at a home computer?
What Ip adress is going to be at the index.php?
How is the domain going to know which computer with the same IP is going to be the one with the website files (I have more than one computer at home)
REP+++++++++++ if you post in my thread. :wub::wub::wub:
I was wondering if someone could enlighten me, I am trying to run me little war project at home.
I had several experiences renting dedicated servers so I know that when you want to get your website online I did the following:
-First I bought a domain and I redirected the domain to the IP adress of my dedicated server.
-Secondly, in XAMPP folder "htdocs" I created a folder and passed my website files on to it.
-Then in xampp/htdocs/index.php/ I modified it:
-Secondly, in XAMPP folder "htdocs" I created a folder and passed my website files on to it.
-Then in xampp/htdocs/index.php/ I modified it:
THIS IS THE ORIGINAL INDEX.PHP
PHP:
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/xampp/');
exit;
?>
Something is wrong with the XAMPP installation :-(
THIS IS THE MODIFIED INDEX.PHP (In line 8 you can see how I redirect to my ot server website inside the folder "OTWEBSITE"
PHP:
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/xampp/OTWEBSITE');
exit;
?>
Something is wrong with the XAMPP installation :-(
Does someone know how to do this same process but at a home computer?
What Ip adress is going to be at the index.php?
How is the domain going to know which computer with the same IP is going to be the one with the website files (I have more than one computer at home)
REP+++++++++++ if you post in my thread. :wub::wub::wub: