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.
- 11-21-2005 #1Linux 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.
- 11-21-2005 #2Linux 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.
- 11-21-2005 #3
have you tried this
this should delete the files and the folder /var/www/cantactusCode: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
- 11-21-2005 #4Linux 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
- 11-21-2005 #5Linux 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
- 11-21-2005 #6
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.


Reply With Quote
