unknown gamer Posted May 11, 2008 Share Posted May 11, 2008 Hey, i have a question, With my website if i change a link i have to go to every page and change the link manually. Is it possible if i only change the index.html every other link changes so i don't have to go through every page? Link to comment Share on other sites More sharing options...
Ingolme Posted May 11, 2008 Share Posted May 11, 2008 If you use server-side includes you can.You'll either need an .shtml extension on your page (and a web host that supports it) or you need PHP or some other language to do it.Then you put something like this in your page:<?php include("menu.php"); ?>And menu.php looks like this: <a href="URL">Link</a><a href="URL">Link</a><a href="URL">Link</a><a href="URL">Link</a> Link to comment Share on other sites More sharing options...
unknown gamer Posted May 12, 2008 Author Share Posted May 12, 2008 what kind of .shtml page?or do i just change my .html pages to .php? Link to comment Share on other sites More sharing options...
Ingolme Posted May 12, 2008 Share Posted May 12, 2008 I'd just use PHP.The .shtml extension is specifically only for including, but you may want to add more PHP functionality to your site later. Link to comment Share on other sites More sharing options...
unknown gamer Posted May 12, 2008 Author Share Posted May 12, 2008 Ok, i got it to work, thanks:) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.