|Download this addon|
ShortURL is the solution to make WebsiteBaker work without the /pages/ directory and the .php extention in the generated url's.
WebsiteBaker uses the /pages/ directory to prevent problems that can arise with system directories like /admin and /media.
Removing the /pages using the settings pagin in WebsiteBaker will work ok, but when you (or your webmaster) creates a page called "admin" or "media" problems will start. These directories are in use by the WebsiteBaker core and could be overwritten or completely removed by the CMS itself.
Using a seperate directory is therefore highly recomendable.
This solution will still use the /pages/ directory, but it will be hidden for the visitors.
The solution has 3 parts.
A droplet that will rewrite all generated links into the new format.
A .htaccess file that will capture the url's and redirect them to a special script.
A script that will make sure the correct page is shown.
For a full explanation and download, go to short.dev4me.nl
- A few security enhancements
- Better 404 handling
- Google_sitemaps.php included
- htaccess makes sitemap.xml available