I have new server, server ip point me to

http://ip-address/cgi-sys/defaultwebpage.cgi

File manager can show me public_html folder without any index.html and htdocs? Please advise me how to run php file by removing defaultwebpage.cgi?

Directory structure (from comment below): enter image description here

link|improve this question
feedback

migrated from stackoverflow.com Jan 7 at 11:53

This question came from our site for professional and enthusiast programmers.

2 Answers

Have a look for the server config e.g. apache.conf, vhost.conf or .htaccess files.

One of them will contain a redirect command.

link|improve this answer
<a href="tinypic.com?ref=2hrjvy0"; target="_blank"><img src="i43.tinypic.com/2hrjvy0.jpg"; border="0" alt="Image and video hosting by TinyPic"></a> – Aslam Khan Jan 7 at 11:48
I cannot see apache.conf, vhost.conf or .htaccess files. Please see above image – Aslam Khan Jan 7 at 11:48
I can see .htaccess, please guide me how to fix redirect. I can see .htaccess in almost all folders, in root and in sub-folders too. – Aslam Khan Jan 7 at 21:35
feedback

it looks like you are having a linux hosting. Normally in linux hosting the files has to be uploaded into the public_html folder where as in windows hosting you use the htdocs folder. Just upload your index file to the public_html folder and access your site it will automatically load the index file.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.