Old 09-04-2008, 09:17   #1 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 223
PHP and Google

i have been delving into PHP more recently, and have started to put together a site, where all the info is dragged from a database and displayed on index.php?page=[whatever]

my question is, will the whole site get listed or not, will google follow these links or will my content be ignored?
  Reply With Quote
Old 09-04-2008, 09:29   #2 (permalink)
genitalia
Vagina Vagina Vagina
 
genitalia's Avatar
 
Join Date: Jan 2008
Posts: 180
I get around this by creating a page called really-interesting-title.php with the simple content.

<?php
$page = "really-interesting-title";
$title = "Very Interesting Page";
$description = "All about this interesting page";
include("index.php");
?>
  Reply With Quote
Old 09-04-2008, 09:37   #3 (permalink)
genitalia
Vagina Vagina Vagina
 
genitalia's Avatar
 
Join Date: Jan 2008
Posts: 180
Then on the index page

<title><?php if(!$title){echo "Welcome to the home page.";} else{echo $title} ?></title>

etc.
  Reply With Quote
Old 09-04-2008, 09:46   #4 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 223
not sure what you mean?

what I mean, if the link it sending a get to a php script, will google follow it, and read the html that is returned?
  Reply With Quote
Old 09-04-2008, 10:04   #5 (permalink)
freelancr
Senior Member
 
freelancr's Avatar
 
Join Date: Oct 2006
Posts: 2,152
yes, although for seo purposes it is probably best to make use of mod_rewrite for more keywordy urls.
  Reply With Quote
Old 10-04-2008, 01:02   #6 (permalink)
skunkbad
Registered User
 
skunkbad's Avatar
 
Join Date: Apr 2008
Location: Temecula, California
Posts: 19
I've heard google will follow a url that has one var=value in it, but if the URL has more than one var in it then your out of luck. As mentioned, mod_rewrite is definitely the way to go. It's really not as mysterious and terrible to use as some would have you believe. phpfreaks dot com had/has an awesome tutorial to get you started.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8