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:

PHP Code:
Bad Request

Your browser sent a request that this server could not understand
Apache/2.0.52 (Win32mod_ssl/2.0.52 OpenSSL/0.9.7e PHP/5.0.3 Server at geobop Port 80 
The weird thing is that my original site doesn't display this error message even if I type in an incorrect URL. I could type mysite/trea instead of mysite/tree, and it would display a page. But my cloned site won't even display pages with the correct URL.

Below is a copy of the most relevant script. Any ideas? Thanks.

PHP Code:
$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';