Sarthok Bhattacharya
Sarthok Bhattacharya

Reputation: 103

how to move a apache localhost website to internet (i.e remote server)

i have few conceptual queries about moving a locahost site to server for making it available on internet.....what are the steps...how server will recognize the changes in my apache and php config files..i have built a website in php and mysql on apache 2.2

NOTES:

so repeating the question again

Upvotes: 2

Views: 1937

Answers (2)

Azathoth
Azathoth

Reputation: 582

and who will my remote server will recognize the changes i have made in my config file and will work according to the changes

Normally hosting servers are configured to allow the use of .htaccess files to override apache configuration

you may create a .htaccess file in your root directory and place there your DirectoryIndex settings

Upvotes: 1

Shikiryu
Shikiryu

Reputation: 10219

should i change all the header functions while uploading acording to my website name i.e header('Location: http://www.my_site_name.com/home/'); in place of header('Location: http://localhost/home/');

Why not using relative paths or simply:

header('Location: /home/');

and who will my remote server will recognize the changes i have made in my config file and will work according to the changes

That way, it'll work on both servers.

and what are the steps to upload a website to internet

You should use a FTP client to upload your website to your webhost.

Upvotes: 0

Related Questions