I'm in the process of building my first database site as Eli laid out in his SEO Empire post and I had a question regarding how to lay out the outbound links.
I'm thinking a using a PHP function so that I'll be able to manipulate the anchor text and destination of every link from a central file (i.e "config.php")
<?php
define('link1', '<a href=http://www.blah.com>anchortext1</a>');
define('link2', '<a href=http://www.blahblah.com>anchortext2</a>');
?>
And then at the footer of each page, I'll just use Echo to call up link1, link2 etc.
So far, this is the best solution that I can think of to control sitewide links on a massive database site that can handle on-the-fly changes, in case you need to switch up the links in the future. But this seems like a rather crude solution and there would be no variance on the anchor text, which could hurt.
I was just curious to know what everyone here does. Any thoughts?
I'm thinking a using a PHP function so that I'll be able to manipulate the anchor text and destination of every link from a central file (i.e "config.php")
<?php
define('link1', '<a href=http://www.blah.com>anchortext1</a>');
define('link2', '<a href=http://www.blahblah.com>anchortext2</a>');
?>
And then at the footer of each page, I'll just use Echo to call up link1, link2 etc.
So far, this is the best solution that I can think of to control sitewide links on a massive database site that can handle on-the-fly changes, in case you need to switch up the links in the future. But this seems like a rather crude solution and there would be no variance on the anchor text, which could hurt.
I was just curious to know what everyone here does. Any thoughts?