ShortURL

ShortURL - WebsiteBaker Script

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

December 2022

There is an improved .htaccess that fixes all kinds of errors related to missing files.
Check it out here

Download

WebsiteBaker-Shorturl-v4.0.zip

- A few security enhancements
- Better 404 handling
- Google_sitemaps.php included
- htaccess makes sitemap.xml available
License: GNU / GPL
Timestamp: 01-12-2015
Version: v4.0
Filesize: 6.62 KB
Downloads: 4257

WebsiteBaker-Shorturl-v3.0.zip
Version: v3.0, Timestamp: 01-12-2015, Downloads: 1485
New approach..
Faster, and works fine with Bakery/News/Topics

Share this page

Follow Dev4me