TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 03-24-2010, 10:39 PM   #1 (permalink)
The Contributor
 
SaintIsaiah's Avatar
 
Join Date: Jan 2009
Posts: 48
Thanks: 5
SaintIsaiah is on a distinguished road
Default Does this work the same?

Ok so here's my dilemma. I have a large-content site I'm working on for my boss (62 pages of content.) I wanted to minimize my workload for future edits, so I stripped the header and footer from every page, put them in their own php files, and I'm telling each content page to include them. To keep the same SEO principles and enhance them, I did the following:

1.) Enabled mod_rewrite to translate each .php into .html
2.) Made a global keywords variable in the header (seen below)

PHP Code:
$globalKeywords "internet, Solano, broadband, high speed, fast, Winters, Dixon, Vacaville, Fairfield, Suisun, Green Valley, Elmira, Dixon, Winters 95620, 95687, 95688, 95625, 94585, 95694, web hosting, web design, computer repair"
3.) I then wrote this if/else statement below the global keywords variable (seen below)

PHP Code:
if($keywords != "") {
echo 
"<meta name=\"keywords\" content=\"$globalKeywords.$keywords\">\n";
} else {
echo 
"<meta name=\"keywords\" content=\"$globalKeywords\">\n";

4.) Finally, for each content page, I defined the variable $keywords to add page specific keywords into the header for that page itself (seen below)

PHP Code:
$keywords "dsl speeds, dsl rates, hi speed internet"
So to understand the idea, if there are any page-specific keywords on the content page, it's added into the global keywords. If not, only the global keywords are used.

My boss believes this will make the crawlers confused and not index every page. Am I right in assuming as long as the links work, are in html extensions and do not have variables in the url that they should be able to index just as well, if not better than with fully stand-alone html pages?
SaintIsaiah is offline  
Reply With Quote
 



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

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Defining your World: All About Constants Wildhoney General 15 01-29-2013 12:32 PM
Looking For Long Term Work riscphree The Lounge 0 03-14-2010 05:55 PM
Duble the work on pages Face_Of_Boe Absolute Beginners 3 01-06-2009 04:16 PM
Functions dont work from included files. Orc Javascript, AJAX, E4X 2 07-25-2008 11:22 AM
Host Upgraded - File Upload won't work now gillweb General 7 02-25-2008 03:53 AM


All times are GMT. The time now is 07:43 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design