PHP + earch engines
- Started
- Last post
- 13 Responses
- v3nt
most of my sites are created with php/html pages. so normally my pages wont contain the content stored in the database. How can i make the database contents available for search engines to find and archive?
- v3nt0
oooh. sounds like a ball ache. can you get php to periodially create html copies of a queery? maybe the first time the queery is made its 'saves as' into a different folder?
- UndoUndo0
look at CRON jobs if they are supported on yr server and php's file functions
- v3nt0
how about just crating html from php? is that pos?
that cron looks pretty handy!
- UndoUndo0
se's like .html more than .php
but you can set up yr server to process html as php with .htaccess.
- ********0
I thought that Google didnt mind dynamically created pages..
All of the XX.php sites Ive done are showing up well - Ive done some search engine friendly URL mod rewrite stuff, and it was effective.
Even so, if the ?var=this&var2=that query in internal links isnt too long, it should still get crawled..
I like to dynamically create a title tag, too which can help..
- justjeff0
Search-engine friendly urls with .htaccess help, but for google especially, you may want to learn about Google's sitemap feature.
I generate an XML file nightly which Google grabs every day / every other day, and they then crawl pages that appear in the XML but do not appear in their index.
My XML file is at http://www.vobbo.com/includes/si… , for the curious.
- v3nt0
but how would that lead to a product page? or your webpage?
- justjeff0
You submit the XML to google.
Google crawls every page in the site, including those that are purely database, meaning every product/dynamic page gets indexed and the URL recorded.
When someoen searches, the dynamic page matches, and the user goes directly to the dynamic page that Google found in the XML file.
- UndoUndo0
the xml file is all about pages, they are really easy to use/create and like said ^^ they help get all yr pages crawled.
- spiralstarez0
curiosity:
Is it trust on the crawlers part that the content in the XML file is what's really on your site?
Doesn't that leave it open for people to abuse by serving up a XML file that will rank them higher?
- v3nt0
so, how do you submit this xml file to google?
- justjeff0
The XML only points Google to the pages, not the content. The pages must exist, or it does no good.
The Google Sitemap can be found by using Google to search for Google Sitemap.