Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/kure. a flat-file blogging engine
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031<?php
/* pages * a kure plugin * * This plugin enables minimally cleaner entry URLs. It will turn * * example.com/?entry=My-first-day * * into * * example.com/?My-first-day * * This plugin will also instantly redirect any page requests matching the first * format to the second format. * * This is mainly meant for those who wish to turn kure entries into more of a * "page" feel than a blog post, but can be used for just cleaner URLs alone. * * To install, put this file in the plugins folder in your main kure directory. * If one doesn't exist, create it. * */
if(isset($_GET['entry'])) header('Location: ?' . $_GET['entry']);elseif(!empty($_GET) && !isset($_GET['page'])) $_GET['entry'] = array_pop(array_keys($_GET));
?>