WebsiteBaker 2.13.9 R24 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
RewriteEngine on#404 redirectsRewriteCond %{REQUEST_FILENAME} !-f#RewriteCond %{REQUEST_FILENAME} !-dRewriteRule ([^/\.]+).php$ /search/index.php?string=$1&match=any&error=404 [L]
$string = str_replace("-", " ", $string );
$error = 'none'; if(isset($_REQUEST['error'])){ $error = $_REQUEST['error']; } if($error == '404'){ echo '404 Error. The page you entered was not found. <br>Please check the search results below to locate the page you are looking for.'; }
So for example: A user types the address http://www.mysite.com/blue-flamingo.php but the page dosn't exist so the user is redirected to a search page of any of the words blue flamingo. Because your site has a page named pink flamingo it shows up in the search results.
I currently working on using something similar to this to modify wb so that it dosn't need physical pages in the pages folder by redirecting the user to a dummy page and then matching the page typed with the page link in the database to then retrive the data of the page. I should have this mod finished by the end of the week.