I have a website that is updated fairly often. It has only been online since Jan (about 3 months).
I don't manually update the site, the site gets new content from users. The backend stores the website content and serves it up conditionally (paged, sorted by date, etc).
When I do a Google search, I find a link to my website and that works just fine. Google also lists individual pages of my site in the search ressults. So for example:
- news - www.example.com
- contacts - www.example.com
- about - www.example.com
If I click "news - www.example.com" in the Google search results I get my website content as it was 3 months ago on that page. If once I'm on my website and navigate internally, I get up to date content, even if I navigate back to the news page. This leads me to think Google has cached and indexed my pages.
The problem is, obviously that if a user gets to one of my pages via a Google search link, they will get content 3 months old.
I can't manually ask Google to re-crawls my site every time a new post is made. I don't create content, users do.
How can I fix this without negatively affecting:
- Performance
- Google ranking
I've searched for answers, but the only things I've found are posts about pages that no longer exist and such due to an old website being re-written or re-coded. that is not my issue. The HTML, CSS, JavaScript, and directory structure haven't changed. Only the content in the data base which is served up by PHP as content is different.
IMPORTANT NOTES
- None of the content is hard coded into the site. It is pulled from the database...
- Content changes at least 5 times a day... at random times.
- All the links Google provides are 100% correct... there are no stale or old pages (This is not true, see my edit bellow).
- If I go to the page via the address bar bypassing Google or even if I go to it via the main Google provided search ressult link www.xyz.com... all works 100%.
- Only when I click on a page specific link that shows up in a Google search is there a problem... the link Google provides for the main site works 100%.
EDIT What I realized is that Google indexed the site such that some of the page specific links are as such: www.xyz.com/a.php?article=555. Obviously it should be just www.xyz.com/a.php since there are many articles on one page and which articles are there is date dependant. In this example if a user clicked the link they would see the site with one article, specifically article 555. Maybe I need some robots file to prevent search engines from indexing pages as such... not quite sure how.