Search Engine Optimization
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignSearch Engine Optimization

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 9th, 2004, 03:32 PM
merlinti's Avatar
merlinti merlinti is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Miami, FL
Posts: 134 merlinti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 24 m 17 sec
Reputation Power: 6
Google and PHP include redirect

I built a php website using a switch statement to include files like : "index.php?page=home" . This will include the "home.php" page into the index.php page. Also it will include the meta tags and title for that page depending on what "page" is equal to. the home.php file contains a table and some content. At the top of the page, I have this code so that the page can't be shown by itself:
PHP Code:
<?
if (!$main){
    
header ("Location: index.php?page=home");
    }
?>


I the index.php file at the top I have this:
PHP Code:
<?
$main 
1;
?>


Also, I have "mod rewrite" and changed all the links to this:
"nch-home.php" which is really "index.php?page=home".
It all works fine.

My question is what will Google do when it finds the home.php include file? Will it frown upon the header redirect? Can it spider this page?

thanks for any help
__________________
------------->
Eric P.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignSearch Engine Optimization > Google and PHP include redirect


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway