دنبال کننده ها

۱۳۹۶ آذر ۹, پنجشنبه

Display content of example.com/file.php on example.com

[ad_1]



I have a Cpanel hosting where I would like to publish a very simple (just a few lines of text) page under the www.example.com. Therefore I created an index.php file and uploaded to the root directory of the domain. Now it works perfectly under the www.example.com/index.html, but my goal is to load it's content when I visit www.example.com.



I would really appreciate if somebody could show me how should it be done. I tried to add <?php header("Location: http://www.example.com"); ?> into the header of the file, however nothing happened. I assume the answer is something trivial, but I can't figure it out since I never worked with php.




[ad_2]

لینک منبع