2 quick wp qstns: can html pages coexist on site? index.html will work?

Discussion in 'HTML & Website Design' started by cafinater, Apr 2, 2007.

  1. #1
    Hi. anyhelp would be much appreciated.
    I'm updating my html site into WP. I'm going to keep all the same .html file names.

    1) some page files I want to just leave be. I don't want to enter into WP. I have some old sections I want to leave, and some root level pages. Can I have good old html pages coexisting with WP? they will be found and not overwritten into a 404 or something somehow by WP?

    2) I have a lot of links to site/index.html I know how to use slugs to name other pages oldname.html. But can I name the index page index.html?

    Thanks much for your help!
     
    cafinater, Apr 2, 2007 IP
  2. Valve-Hosting

    Valve-Hosting Peon

    Messages:
    1,071
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yeah youcan because WP is written i PHP so it has index.php, although browsers will open index.html instead of index.php (because of the default apache settings) though people can access index.php and it will work fine.

    If people type in http://www.yoursite.com/ they will go to index.html
    but if people type in http://www.yoursite.com/index.php they will go to wordpress

    ;)
     
    Valve-Hosting, Apr 3, 2007 IP
  3. cafinater

    cafinater Peon

    Messages:
    232
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks for replying. So what I want is that my old html site will be completely replaced by WP, so that if someone types index.html, they will be taken to the main page of wp. I don't know if I have to do a permanent redirect or if I can name the "home" page index.html
     
    cafinater, Apr 4, 2007 IP
  4. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #4
    If your server supports htaccess, use the following line to set a default index file:
    DirectoryIndex index.php index.html
    Code (markup):
    That means the server will look for index.php then index.html to use as the default index page for the site.
     
    Clive, Apr 4, 2007 IP