Results 1 to 1 of 1
Thread: Why doesn't my CMS clone work?
Mar 8, 2006, 21:32 #1
- Join Date
- Jan 2004
- 0 Post(s)
- 0 Thread(s)
Why doesn't my CMS clone work?
I want to convert all my websites to content management systems, so I created a basic CMS, then copied it, assuming the copy would work just like the original. But it doesn't.
There must be some very simple, basic problem, but I haven't stumbled over it. The original site and the clone are both associated with virtual servers, with both logged into a hosts file. The mod-rewrite rules should work the same for both of them. Ditto for the $path = '' . $_SERVER['DOCUMENT_ROOT'] . ''; script.
It doesn't seem to be a database problem, as even a section that doesn't use a database doesn't work.
My script uses the $_GET function, matching it to the variable $MyName. I then create a hyperlink to various pages, like http://mysite/About/New, where the static page is http://mysite/About/. I also created a PHP switch based on the value $MyName and including an ID ($MyID) which triggers an article from a PHP switch on an included page.
But when I click the link to http://mysite/About/New, I get the following error message:
Your browser sent a request that this server could not understand.
Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7e PHP/5.0.3 Server at geobop Port 80
Below is a copy of the most relevant script. Any ideas? Thanks.
$path = '' . $_SERVER['DOCUMENT_ROOT'] . '';
$MyName = ($_GET['bout']);
switch ( $MyName )
$MetaName = 'About MySite';
$MetaDesc = 'A brief history and overview of MySite';
$MetaKey = 'MySite, David Blomstrom';
$MyID = 'Abo';
$MetaName = 'What’s New?';
$MetaDesc = 'MySite updates, upgrades and revisions';
$MetaKey = 'What’s New, revision, update, upgrade, MySite, David Blomstrom';
$MyID = 'AboNew';