Building my site... again
| From: | Torkil Johnsen | Date: | Fri, 25 Jan 2002 15:35:57 +0000 |
| Subject: | Building my site... again | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-82108@lists.php.net to get a copy of this message | ||
I started my HTML career back in the days when the newest MS Word-version
came with a "save as html"-function. I saved as HTML, read the code, and
learned by myself bit by bit. By the time I got my hands on HTML for
dummies, I realized I was no dummy after all :) But now, asking this, I feel
kinda dumb...
Its got to do with PHP, search engines, meta-tags and headers.
I am building my site like this:
- I have an index.php-file, that takes two variables, page and subpage. A
link on my site may look like this:
<a href="index.php?page=cars&subpage=ferrari"> (for instance)
Now, my index.php-file will do this: (basically)
<html>
<body>
if($page){
include($page . ".inc");
}
</body>
</html>
and my cars.inc will do this:
if($subpage){
include($subpage . ".inc");
}
Now. I would of course like for my site to be listed in the search engines,
and I wouldn't mind getting search hits on both cars and ferrari. But. Will
the web spiders and web crawlers ever follow a link like
index.php?page=cars&subpage=ferrari and will they ever index what they find
there, and, and, and, and...
Well... does anyone understand what I'm asking here? WOuld this be a good
way to build my site to ensure getting hits from search engines, or should I
do this some other way? Anyone know?
- Torkil