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
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
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
Old 03-25-2010, 04:24 AM   #2 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Quote:
1.) Enabled mod_rewrite to translate each .php into .html
Doesn't make any difference to the search engines at all. It's query strings you want to avoid.

Quote:
2.) Made a global keywords variable in the header (seen below)
Google (with 67% market share) doesn't even look at your meta keywords or description tag, so this won't affect your relationship with them. Bing does, and despite running a company that should be boycotted instead of considered, so does Yahoo.

Quote:
My boss believes this will make the crawlers confused and not index every page.
They won't mind.

On a side note, if you want to make the site even easier for you to maintain (and use some publicly available plugins which will greatly increase your SEO with very little effort on your part), you should look into WordPress before you go much further.
delayedinsanity is offline  
Reply With Quote
Old 03-25-2010, 04:22 PM   #3 (permalink)
The Contributor
 
SaintIsaiah's Avatar
 
Join Date: Jan 2009
Posts: 48
Thanks: 5
SaintIsaiah is on a distinguished road
Default

Quote:
Originally Posted by delayedinsanity View Post
Doesn't make any difference to the search engines at all. It's query strings you want to avoid.



Google (with 67% market share) doesn't even look at your meta keywords or description tag, so this won't affect your relationship with them. Bing does, and despite running a company that should be boycotted instead of considered, so does Yahoo.



They won't mind.

On a side note, if you want to make the site even easier for you to maintain (and use some publicly available plugins which will greatly increase your SEO with very little effort on your part), you should look into WordPress before you go much further.
Good advise. I've tried recommending WordPress though and he absolutely refused and wants the entire website in basic HTML. Yet I work full time for him and he also holds me responsible if the work I'm doing doesn't get him traffic.
SaintIsaiah is offline  
Reply With Quote
Old 03-25-2010, 04:39 PM   #4 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Tell him that if you're going to held responsible for the success or failure of the site, that you need technical control over the execution.

Nobody runs a static site with over four pages of content anymore. Except Google.... they've got Google gnomes writing up static pages for every possible search combination that they can think of. Millions of Google gnomes.
delayedinsanity is offline  
Reply With Quote
Old 03-25-2010, 07:09 PM   #5 (permalink)
The Contributor
 
SaintIsaiah's Avatar
 
Join Date: Jan 2009
Posts: 48
Thanks: 5
SaintIsaiah is on a distinguished road
Default

Just talked to him. He still doesn't want WordPress but he did authorize me to create my own php to manage the content. I've done it a few times before for clients so this definitely makes me feel better.
SaintIsaiah is offline  
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
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 02:46 PM.

 
     

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