Find the answer to your Linux question:
Results 1 to 6 of 6
i was adding dir, to my site i had the site like this WWW.TESTMYPAGE.COM and now when i enter testmypage.com i get redirected to TESTMYPAGE/index.html notice there's no WWW. i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Oct 2005
    Posts
    110

    how can i delete index.html


    i was adding dir, to my site i had the site like this WWW.TESTMYPAGE.COM and now when i enter testmypage.com i get redirected to TESTMYPAGE/index.html notice there's no WWW. i try to delete the index.html but i can't. how can i delete this. the index.html is at /var/www/html/index.html. i'm confuse can someone tell me whats going on.

  2. #2
    Linux Newbie
    Join Date
    Oct 2005
    Posts
    110

    help with index.html

    i made some dir, like this mkdir /var/www/html/about_me
    mkdir /var/www/html/about_me/index.html
    mkdir /var/www/html/contactus/
    mkdir /var/www/html/contactus/index.html
    and i made also this one
    mkdir /var/www/html/index.html
    so now when i try to delete them i can't why. and how can i delete them.

  3. #3
    Linux User Game master pro's Avatar
    Join Date
    Sep 2005
    Location
    Tasmania, australia
    Posts
    274
    have you tried this

    Code:
    su
    [root pass]
    rm /var/www/html/about_me/index.html
    rm /var/www/html/contactus/index.html
    rmdir /var/www/html/contactus/
    rM /var/www/html/index.html
    this should delete the files and the folder /var/www/cantactus

  4. #4
    Linux Newbie
    Join Date
    Oct 2005
    Posts
    110

    how can i delete index.html

    this code fail>>>
    Code:
    su 
    [root pass] 
    rm /var/www/html/about_me/index.html 
    rm /var/www/html/contactus/index.html 
    rmdir /var/www/html/contactus/ 
    rM /var/www/html/index.html 
    
    i enter su -
    i enter password
    i enter rm /var/www/html/about_me/index.html
    i got back 
    rm  remove directory '/var/www/html/about_me/index.html/'?
    so after this i just click on enter and return to root prompt what did i did wrong

  5. #5
    Linux Newbie
    Join Date
    Oct 2005
    Posts
    110

    help with index.html

    oh i can delete them from kde but when i reload they come back

  6. #6
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    1. index.html should NOT be a directory
    2. Press 'y' at the prompt
    3. It will fail anyway since you didn't specify "-r" on the command line, seeing as index.html is for some reason a directory
    Just as an fyi you can suppress these warnings using "-f" on rm.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •