A menu via an Include

Discussion in 'HTML & Website Design' started by WACMan, Mar 22, 2007.

  1. #1
    I am redesigning a site that is over 3 years old and all .html. I do not want to change to php or re direct all html to php.

    I want to include another file containing just my menu items so when I change one file it changes all the menus over 1000's of pages.

    Is it do-able?

    Thanks for help and suggestions!

    P.S. - About to throw computer out the window so may be back soon to pay some one to finish this up! :D
     
    WACMan, Mar 22, 2007 IP
  2. adamjthompson

    adamjthompson Well-Known Member

    Messages:
    1,242
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Yes, you need to modify your htaccess file to allow php code in html files.

    This should do it:

    AddHandler application/x-httpd-php .php .htm .html
    Code (markup):
     
    adamjthompson, Mar 22, 2007 IP
    WACMan likes this.
  3. WACMan

    WACMan Peon

    Messages:
    253
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank You Very Much !

    Now to keep the computer INSIDE the house :p
     
    WACMan, Mar 22, 2007 IP
  4. adamjthompson

    adamjthompson Well-Known Member

    Messages:
    1,242
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    125
    #4
    Well, if you just HAVE to get rid of the computer, I'll be glad to take it off your hands. ;)
     
    adamjthompson, Mar 22, 2007 IP