STILL IN DEVELOPMENTChange files attatched. Does not yet support the Menu Link module and still uses php pages for news posts.
Compatability with none standard modules is unknown.This branched of from what i did here: http://www.websitebaker2.org/forum/index.php/topic,9976.0.html
The idea is to remove all physical .php pages from the pages folder and to use a .htaccess rewrite engine to silenlty redirect the user to the baker.php page and pass it the varibale of the page link, baker.php then uses the database to match the page link to a page id and then retrives the page.
Intrestingly a similar idea is in development for WB 3, but i dont like waiting. See here: http://projects.websitebaker.org/websitebaker3/wiki/DatabaseForDataAdvantages:
No /pages/... .php in URL
Reduces problems caused by permsions.
Requires server permisions to use .htaccess and Apache module mod_rewrite
Done:
Added .htaccess file
Added baker.php file
-Retrieve data
-Redirect to 404 search
Modified search/search.php to accept 404 and 403 and to remove '-' and '/'
Modified admin/pages/add.php to prevent file creation.
Modified framework/class.wb.php remove PAGES_DIRECTORY & PAGE_EXTENSION from function page_link($link)
To do:
Sort out what to do with news posts
Decide what to do with the PAGES_DIRECTORY variable
Add on/off option to WB settings.
Install:
Install wb 2.7 and then the attatched files to your server replacing the existings files.
--As this is still in development dont actualy implement it on a live system as it is no where near finished. Always make a backup--