How to change my index.html by using script?

Discussion in 'Site & Server Administration' started by saturnjr, Aug 2, 2009.

  1. #1
    Anyone can help me if i upload a html file from other pc to my web server and i wanna change that uploaded html file as my main page when i enter by using any script. Just inside local network. thx
     
    Last edited: Aug 2, 2009
    saturnjr, Aug 2, 2009 IP
  2. Password

    Password Well-Known Member

    Messages:
    127
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #2
    Sorry, but I cannot understand your post. Can you please rephrase it?
     
    Password, Aug 2, 2009 IP
  3. ravee1981

    ravee1981 Active Member

    Messages:
    712
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #3
    index.html are always the main pages.

    But if you want the old index file renamed automatically, you just need to create a shell script on your server, that would rename the old file with some random number, and change the name of the new file to index.
     
    ravee1981, Aug 4, 2009 IP
  4. saturnjr

    saturnjr Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    how to write the shell script that can rename the old file, thx
     
    saturnjr, Aug 4, 2009 IP