473,246 Members | 1,461 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 software developers and data experts.

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 1586
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
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
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
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
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
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
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
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
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
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
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.