473,486 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Content Management System Outputting HTML

Hi,

I've created a basic Content management System that i use to maintain
my website.

However i'm having promblems with getting the site ranked on search
engines, presumably as it's all sourced from a MySQL Database.

What i'd like to do is to add an option in the Admin Interface that
would generate HTML files from the parsed PHP pages.

I understand how to save a full page into a file using ob_get_clean,
however this wouldn't solve the problem with the links which would
still be (for example) news.php?ItemID=2.

Is what i'm trying to accomplish feasable? and could anyone give me
some advice on the best way to solve the problem.

Cheers,

Ian

Jul 17 '05 #1
4 1592
In article <11**********************@z14g2000cwz.googlegroups .com>,
"Ian N" <ia*******@gmail.com> wrote:
Hi,

I've created a basic Content management System that i use to maintain
my website.

However i'm having promblems with getting the site ranked on search
engines, presumably as it's all sourced from a MySQL Database.

What i'd like to do is to add an option in the Admin Interface that
would generate HTML files from the parsed PHP pages.

I understand how to save a full page into a file using ob_get_clean,
however this wouldn't solve the problem with the links which would
still be (for example) news.php?ItemID=2.

Is what i'm trying to accomplish feasable? and could anyone give me
some advice on the best way to solve the problem.

Cheers,

Ian


How about using mod_rewrite to create search engine friendly URLs? I've
done this on the advice of a search engine company that one of my
customers uses. They have some spectacular results with some highly
competitive phrases so I guess they know what they're talking about!

--
Andy Jacobs
www.redcatmedia.net
Intelligent Websites For Intelligent Business People
Jul 17 '05 #2
Ian N wrote:
Hi,

I've created a basic Content management System that i use to maintain
my website.

However i'm having promblems with getting the site ranked on search
engines, presumably as it's all sourced from a MySQL Database.

What i'd like to do is to add an option in the Admin Interface that
would generate HTML files from the parsed PHP pages.

I understand how to save a full page into a file using ob_get_clean,
however this wouldn't solve the problem with the links which would
still be (for example) news.php?ItemID=2.

Is what i'm trying to accomplish feasable? and could anyone give me
some advice on the best way to solve the problem.

Cheers,

Ian


You are pretty close. Instead of just using ob_get_clean to do one page,
you want to "walk" through your site, generating a static HTML for each
page, and converting all of links into static links. The site will be
composed purely of static HTML, with the PHP pages only being used to
generate the HTML at build time, not at access time.

It is important that the file names and hyperlinks not change when you
rebuild the site, otherwise you will confuse the search engines.

--
Kenneth Downs
Secure Data Software, Inc.
(Ken)nneth@(Sec)ure(Dat)a(.com)
Jul 17 '05 #3
I was hoping to maybe write some sort of function that would run
through it for me, so that a had a 'Convert' button which would do all
the hard work for me.

I've had a loot at the Apache solution and it does seem to be a good
way to go, i'm on a shared server so not sure if i'd be able to do this
though.

Kenneth Downs wrote:
Ian N wrote:
Hi,

I've created a basic Content management System that i use to maintain my website.

However i'm having promblems with getting the site ranked on search
engines, presumably as it's all sourced from a MySQL Database.

What i'd like to do is to add an option in the Admin Interface that
would generate HTML files from the parsed PHP pages.

I understand how to save a full page into a file using ob_get_clean, however this wouldn't solve the problem with the links which would
still be (for example) news.php?ItemID=2.

Is what i'm trying to accomplish feasable? and could anyone give me
some advice on the best way to solve the problem.

Cheers,

Ian
You are pretty close. Instead of just using ob_get_clean to do one

page, you want to "walk" through your site, generating a static HTML for each page, and converting all of links into static links. The site will be composed purely of static HTML, with the PHP pages only being used to
generate the HTML at build time, not at access time.

It is important that the file names and hyperlinks not change when you rebuild the site, otherwise you will confuse the search engines.

--
Kenneth Downs
Secure Data Software, Inc.
(Ken)nneth@(Sec)ure(Dat)a(.com)


Jul 17 '05 #4
Ian,
I was hoping to maybe write some sort of function that would run
through it for me, so that a had a 'Convert' button which would do all
the hard work for me.

I've had a loot at the Apache solution and it does seem to be a good
way to go, i'm on a shared server so not sure if i'd be able to do this
though.


Almost all shared servers have this enabled or will enable it on
request. Primarily it is all controlled through a .htaccess file.

How I have done this in the past was wrote my CMS to do the following:
- deny anything with a 404 error not from mod_rewrite (no penalty for
double content)
- cache all database calls for 1hr or more depending on how much the
pages updates
- cache all the templates with the php source merged together (its a 3
file process on mine using a custom xml document).

Then it all runs together real quick. Search engines have scanned
through every single page which is amazing when you have clients that
have 100 pages!

Mike
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
3136
by: Scott | last post by:
Hi, Can I ask some advice in regards database solutions and content management solutions.? Do you have a philosophy on what is the best for databases - ASP, JSP, Cold fusion, PHP, etc. My...
5
2463
by: Mudge | last post by:
Hi, I am relatively new to PHP, but I don't care about that. I want to build a database driven Web site that is really a content management system that allows visitors to register and log in and...
12
3170
by: jonathan.beckett | last post by:
Hi All, For the past few months I have been working on an open source Apache/PHP/MySQL content management system - and have recently made it available for download. It's still very much a...
0
2286
by: jonathan.beckett | last post by:
Hi All, I have just made version 0.4.8 of the PluggedOut CMS Content Management System available for download - it's free, and covered by the GPL. It's still very much a work in progress...
0
2118
by: Scott Abel | last post by:
For immediate release: The Rockley Group Content Management Workshop Series Coming to Atlanta, Seattle, Vancouver, Chicago, Washington, DC, Toronto, and Research Triangle Park Learn more:...
1
2403
by: Epetruk | last post by:
Hello all, I'm sorry for the long post, but I think it's better if I'm as detailed as I can be so that I don't make a mistake in my choice and so that there's a clear understanding of to what...
4
1636
by: Jon | last post by:
All, I'm currently building sites for a fairly small dev shop, and we've run into a subject that we simply don't know where to take. So, here we go: We have built all of our sites statically...
7
370
by: Water Cooler v2 | last post by:
I know what it is, and yet the knowledge of what a CMS is, is so vague that I find myself asking this question every now and then. I've googled and read the resources too. However, the knowledge is...
10
1877
by: JJ | last post by:
I am needing to write a simple content management system for my web site. I've not done this before so if anyone has any link/info please could you mention them? One thing I am confused about:...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5427
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.