automatic way to add link of new page in menu on other pages?

Discussion in 'HTML & Website Design' started by Mares, Jul 19, 2008.

  1. #1
    I have html site with 20 pages, and want to add some new html pages on it.
    When I build new page, I will need to put new link for it in the menu.
    So, is there any automatic way to place links of new added pages in menu on other pages, or I will have to do it manualy by opening every html page and put new links of new pages. I am using dreamveawer 8 for editing.
     
    Mares, Jul 19, 2008 IP
  2. Lethal7

    Lethal7 Active Member

    Messages:
    2,262
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #2
    use php and have a file menu.php

    then all u have to do is edit the menu.php file once

    i suggest you get a coder to help you out with this :D
     
    Lethal7, Jul 19, 2008 IP
  3. Mares

    Mares Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    aha,ok then
     
    Mares, Jul 19, 2008 IP
  4. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It's not so difficult that you need a coder.

    Do what Lethal7 said, then replace the menu code on each page with <?php include("menu.php"); ?>. You will also have to change the file extension from .html to .php for any page that uses this code.

    This tutorial explains it in more detail:
    Tizag's Include Tutorial
     
    Cash Nebula, Jul 19, 2008 IP
  5. faithnomoread

    faithnomoread Peon

    Messages:
    174
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanx for the tips, I was wanting to know that too.
     
    faithnomoread, Jul 19, 2008 IP
  6. Mares

    Mares Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yea, quite useful ...tnx

    but what would happen if I do this with my new site which is just less than one month old, and have just been indexed by google.
    If I upload it again with php instead of html, would it affect on search engines and site position,indexing and so on?

    ps. well,I dont plan to do this now, but in the near future if I decide to add more pages,this is why I asked for this explanation.
     
    Mares, Jul 19, 2008 IP
  7. hydroflame7

    hydroflame7 Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    well, i think it might take a bit for google to reindex all your new url
     
    hydroflame7, Jul 19, 2008 IP
  8. pawe song

    pawe song Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    On some servers files with .html extension are parsed by PHP, so you might do not must change file names.
     
    pawe song, Jul 20, 2008 IP
  9. vagrant

    vagrant Peon

    Messages:
    2,284
    Likes Received:
    181
    Best Answers:
    0
    Trophy Points:
    0
    #9
    also on some servers (non windows servers) you can set .html to be parsed as .shtml and use a ssi includes.
     
    vagrant, Jul 21, 2008 IP
  10. Limotek

    Limotek Peon

    Messages:
    165
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Very true. In the worst case scenario, if your server doesn't parse by PHP, the search engines will need to re-index all the pages you've changed from .html to .php. If this is the case, I would consider setting up a custom error page with either a 301 or 404 header response and have it redirect to your new pages. This will at least keep the trafffic coming your way during the re-index.

    Have a look at http://bobpeers.com/technical/404_redirection.php for guidelines.
     
    Limotek, Jul 23, 2008 IP