View Full Version : SEO for a php page
NewKidOnTheBlock
08-14-2007, 08:17 PM
I'm trying to help a friend with his website. It's very authoritative in his niche and he also has one php page. That page should be ranking well for certain product names (other pages outrank the competition easily), but it doesn't (except for one which is in the top10).
Is there anything an SEO such as myself who doesn't know anything about php could do - or tell him/his web developer to do? I mean like any really basic stuff..such as in SEO dont use frames/dont use untitled document as your title tag ;)...?
thx guys
Yeah, don't use an Iframe, name your document and use a TITLE tag. If you are using "includes" it's a good idea to have at least some "static" content in the page.
happiness
08-15-2007, 05:03 AM
When a PHP page is displayed in a browser, it is actually just pure HTML at that point. PHP code is converted to HTML in the server before sending it to the browser. From search engine point of view the page is treated as HTML.
So, to make a PHP page rank well, just look at the source code of the page (which is HTML) in a browser to see how it looks like and then you can spot the problems. Then the web developer should change the PHP code of the page to output HTML that is better SEO optimized.
-> All the normal HTML SEO optimizations and rules apply to PHP pages as well.
When a PHP page is displayed in a browser, it is actually just pure HTML at that point. PHP code is converted to HTML in the server before sending it to the browser. From search engine point of view the page is treated as HTML.
So, to make a PHP page rank well, just look at the source code of the page (which is HTML) in a browser to see how it looks like and then you can spot the problems. Then the web developer should change the PHP code of the page to output HTML that is better SEO optimized.
-> All the normal HTML SEO optimizations and rules apply to PHP pages as well.
All true but unlike static html pages, with php it's possible for pages to be updated but their server timestamp not to change. This could be important when it comes to "freshness".
Just something to be aware of with php.
Hello Everybody,
I have just joined this forum. Regarding SEO for php site, I too have a similar problem.
The problem is that all the keywords/description/title tag have to be inserted in one folder (includes folder) and every page will include those tags. What it means is that content on each page will be different,but the tags will remain ths same.
Can anyone please point out how to overcome this problem ?
Thanks in advance
Atul
Jazajay
09-15-2007, 01:13 PM
Hi what I do is put the title and the description, I ignore the keyword tag, into the DB for each item then I simply call them from the DB using the items name as the variable.
This lets you dynamically add different and relavant tags to the right page. A lot of work if you have a lot of products but a must.
On static pages I just write the tags as a static title and description.
tpraja
10-09-2007, 04:21 PM
Hi,
Create different header file for every page and add meta data. Include the corresponding header file to every page. This is best solution for php pages.
Hello tpraja,
Thanks for your reply. One more question. By header file do you mean "top.php" file which is in "includes" folder.
Thanks
tpraja
10-10-2007, 10:43 AM
Hi atul,
Exactly correct.
Thanks
Palani
Hello tpraja,
Thanks for your reply. One more question. By header file do you mean "top.php" file which is in "includes" folder.
Thanks