Jump to content

Links


unknown gamer

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...