# HG changeset patch # User Nathan Phillip Brink # Date 2010-10-09 23:15:41 # Node ID a23c8e3ebe9e261f4237a1b57daf1e3b6e4ec9bb # Parent ddb83472d701b7b496af86baabe068f8851024cd Include support for cleaner URLs with example .htaccess and inc/config.inc files. Now, each time a new schedule is created, the user is redirected to that schedule's canonical URL in the same manner as pastebins do. Fixes bug 32 and bug 33. diff --git a/.htaccess.example b/.htaccess.example new file mode 100644 --- /dev/null +++ b/.htaccess.example @@ -0,0 +1,16 @@ +# The following would be used to enable friendly pastebin-style +# URLs. To enable support for these URLs in slate_permutate, set +# $clean_urls = TRUE in inc/config.inc. + +RewriteEngine on + +# If you are serving this out of your home directory, there's a good chance you'll have to uncomment and edit one of the lines below: + +# For http://csx.calvin.edu/slate_permutate: +# RewriteBase /slate_permutate + +# For http://ohnopub.net/~ohnobinki/slate_permutate: +# RewriteBase /~ohnobinki/slate_permutate + +RewriteCond %{QUERY_STRING} ^(.*)?$ +RewriteRule ^([0-9]+)$ process.php?s=$1&%1 [L] diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -1,5 +1,15 @@ trackingcode = '